Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

eth_getTransactionCount implementation #91

Merged
merged 2 commits into from
Sep 6, 2019

Conversation

austinabell
Copy link

@austinabell austinabell commented Sep 5, 2019

Currently runs into same issue as previous methods, indicated with #89 so this can be merged in and all of the issues can be handled at once or this can be left and the fix can be included in this PR

To test:

  1. Run the Ethermint node how it is normally run, I ran:
make install 
rm -rf ~/.emint*
emintd init moniker --chain-id testchain
emintcli config chain-id testchain
emintcli config output json
emintcli config indent true
emintcli config trust-node true
emintcli keys add austin
<password>
<password>
emintd add-genesis-account $(emintcli keys show austin -a) 1000photon,100000000stake
emintd gentx --name austin
<password>
emintd collect-gentxs
emintd validate-genesis
emintd start --pruning=nothing
  1. Start rest server
emintcli rest-server --laddr "tcp://localhost:8545"
  1. Send request:
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x2"],"id":1}' -H "Content-Type: application/json" http://localhost:8545/rpc

Historical queries still not available even with pruning flag and errors on current block

@austinabell austinabell merged commit 1e48e2b into development Sep 6, 2019
@austinabell austinabell deleted the austin/eth_getTransactionCount branch September 6, 2019 14:46
@austinabell austinabell mentioned this pull request Sep 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants