core/tx_pool: fix chainId name to chainID and test

This commit is contained in:
amalraj.manigmail.com 2018-08-16 17:35:16 +08:00
parent 9cf76b8aef
commit 12b6c5376f
2 changed files with 4 additions and 4 deletions

View File

@ -228,7 +228,7 @@ func NewTxPool(config TxPoolConfig, chainconfig *params.ChainConfig, chain block
config: config,
chainconfig: chainconfig,
chain: chain,
signer: types.NewEIP155Signer(chainconfig.ChainId),
signer: types.NewEIP155Signer(chainconfig.ChainID),
pending: make(map[common.Address]*txList),
queue: make(map[common.Address]*txList),
beats: make(map[common.Address]time.Time),

View File

@ -1926,12 +1926,12 @@ func TestEIP155SignerOnTxPool(t *testing.T) {
for _, tt := range flagtests {
t.Run("", func(t *testing.T) {
db, _ := ethdb.NewMemDatabase()
db := ethdb.NewMemDatabase()
statedb, _ := state.New(common.Hash{}, state.NewDatabase(db))
blockchain := &testBlockChain{statedb, big.NewInt(1000000), new(event.Feed)}
blockchain := &testBlockChain{statedb, statedb, 1000000, new(event.Feed)}
chainconfig := &params.ChainConfig{
ChainId: big.NewInt(10),
ChainID: big.NewInt(10),
HomesteadBlock: tt.homesteadBlock,
EIP150Block: big.NewInt(0),
EIP155Block: tt.eip155Block,