mirror of https://github.com/poanetwork/quorum.git
core/tx_pool: fix chainId name to chainID and test
This commit is contained in:
parent
9cf76b8aef
commit
12b6c5376f
|
@ -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),
|
||||
|
|
|
@ -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 := ¶ms.ChainConfig{
|
||||
ChainId: big.NewInt(10),
|
||||
ChainID: big.NewInt(10),
|
||||
HomesteadBlock: tt.homesteadBlock,
|
||||
EIP150Block: big.NewInt(0),
|
||||
EIP155Block: tt.eip155Block,
|
||||
|
|
Loading…
Reference in New Issue