Git Product home page Git Product logo

eth-agent's People

Contributors

a10000005588 avatar quesalltime avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

eth-agent's Issues

Did not implement the "getCode" with second parameters...

Only implement [DATA, 20 Bytes - address]
Did not implement: [QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter]

ex:

params: [
   '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
   '0x2'  // 2
]

Some error message do not correctly show up

For example: when querying to the mongo, if mongo querying spending too much long time, the error should forward to something and print it out.

However, it didn't show up as it should be.

It must reveal the intact information about what it is wrong:
ex: should be: Retrieve receipts failed...(because......)

The response of some json-rpc methods with empty result in Transaction field.

Because the data in mongoDB has change, e.g. The type of transaction value in BS_Blocks is "[]string"
, however, the original format is []Transaction.

The problem files:
eth-agent/modules/agent/historyUtils/model/model.go
The bug struct in...
eth-agent/modules/agent/historyUtils/struct/bs_block/block.go

type Block struct {
	Author           string `bson:"author"`
	Difficulty       string `bson:"difficulty"`
	ExtraData        string `bson:"extraData"`
	GasLimit         string `bson:"gasLimit"`
	GasUsed          string `bson:"gasUsed"`
	Hash             string `bson:"hash"`
	LogsBloom        string `bson:"logsBloom"`
	Miner            string `bson:"miner"`
	MixHash          string `bson:"mixHash"`
	Nonce            string `bson:"nonce"`
	Number           int    `bson:"number"`
	ParentHash       string `bson:"parentHash"`
	ReceiptsRoot     string `bson:"receiptsRoot"`
	SealFields       string `bson:"sealFields"`
	Sha3Uncles       string `bson:"sha3Uncles"`
	Size             string `bson:"size"`
	StateRoot        string `bson:"stateRoot"`
	Timestamp        int    `bson:"timestamp"`
	TotalDifficulty  string `bson:"totalDifficulty"`
	Transactions     []Transaction    // <------  Problem here
	TransactionsRoot string `bson:"transactionsRoot"`
	Uncles           string `bson:"uncles"`
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.