Fixes: #10814 This PR updates the following RPC methods according to EIP-1898 specs. The following RPC methods are affected: - eth_getBalance - eth_getStorageAt - eth_getTransactionCount - eth_getCode - eth_call Note that eth_getBlockByNumber was not included in this list in the spec although it seems it should be affected also? Currently these methods all accept a blkParam string which can be one of "latest", "earliest", "pending", or a block number (decimal or hex). The spec enables caller to additionally specify a json hash which can include the following fields: - blockNumber EthUint64: A block number (decimal or hex) which is similar to the original use of the blkParam string - blockHash EthHash: The block hash - requireCanonical bool) If true we should make sure the block is in the canonical chain Since the blkParam needs to support both being a number/string and a json hash then this to properly work we need to introduce a new struct with pointer fields to check if they exist. This is done in the EthBlockParamByNumberOrHash struct which first tries to unmarshal as a json hash (according to eip-1898) and then fallback to unmarshal as string/number. |
||
|---|---|---|
| .. | ||
| architecture | ||
| .glossary.json | ||
| .library.json | ||
| about.md | ||
| api-v0-methods-miner.md | ||
| api-v0-methods-worker.md | ||
| api-v0-methods.md | ||
| api-v1-unstable-methods.md | ||
| block-validation.md | ||
| cli-lotus-miner.md | ||
| cli-lotus-worker.md | ||
| cli-lotus.md | ||
| create-miner.md | ||
| default-lotus-config.toml | ||
| default-lotus-miner-config.toml | ||
| dev-tools-pond-ui.md | ||
| jaeger-tracing.md | ||
| README.md | ||
| sealing-procs.md | ||
| WIP-arch-complementary-notes.md | ||
Lotus documentation
This folder contains some Lotus documentation mostly intended for Lotus developers.
User documentation (including documentation for miners) has been moved to https://lotus.filecoin.io:
- https://lotus.filecoin.io/lotus/get-started/what-is-lotus/
- https://lotus.filecoin.io/tutorials/lotus/store-and-retrieve/store-data/
- https://lotus.filecoin.io/tutorials/lotus-miner/run-a-miner/
- https://lotus.filecoin.io/developers/
Documentation Website
https://lotus.filecoin.io source is in lotus-docs repository, which contains Lotus as a git submodule.
To update the site, the lotus-docs repository should be updated with the desired version for the lotus git submodule. Once pushed to master, it will be auto-deployed.