eth-agent's People
eth-agent's Issues
eth_getBlockByNumber: If transaction is empty in block, the response will show "null"
Should be "" rather than null.
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"`
}
The blockNumber in BS_Receipt in MongoDB should be type int64 for `getLogs`
Because the parameter of getLogs has "latest" which is to get the latest block in the blockchain,
thus the type of blockNumber in the receipt should be the integer in order to easily query the result.
Need to modify the writing rule in bc2 or manually change the type in MongoDB by the script.
Those method should only return the check result.
In modules/agent/historyUtils/common/parameterCheck
The method:
- Check40HeximalFormat
- Check64HeximalFormat
should return (true or false), err only.
There is an error:"index out of range" and the error message isn't handle well in getTxReceipt.go.
If the result from model.RetrieveReceipts in getTxReceipt.go is empty, then it will occur index out of range".
The problem of json-rpc method: "getBlockByHash" & "getBlockByNumber"
The response of this two method can only return the hashes of transactions when parameter is "true"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.