diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 10:00:31 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | ce9dd85433e342b9ee13848414bc694921be1100 (patch) | |
tree | 892af82873805fb2e98eb7ef7e56b6130ea0438a /internal/ethapi | |
parent | 8b0b015937c02207df440eee6e4c96eec846fae6 (diff) | |
download | dexon-ce9dd85433e342b9ee13848414bc694921be1100.tar dexon-ce9dd85433e342b9ee13848414bc694921be1100.tar.gz dexon-ce9dd85433e342b9ee13848414bc694921be1100.tar.bz2 dexon-ce9dd85433e342b9ee13848414bc694921be1100.tar.lz dexon-ce9dd85433e342b9ee13848414bc694921be1100.tar.xz dexon-ce9dd85433e342b9ee13848414bc694921be1100.tar.zst dexon-ce9dd85433e342b9ee13848414bc694921be1100.zip |
core: various changes on tps tuning (#46)
Diffstat (limited to 'internal/ethapi')
-rw-r--r-- | internal/ethapi/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 1d560b385..45a0a3e10 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1279,6 +1279,7 @@ func submitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c // submitTransactions is a helper function that submits batch of tx to txPool and logs a message. func submitTransactions(ctx context.Context, b Backend, txs []*types.Transaction) ([]common.Hash, error) { + types.GlobalSigCache.Add(types.NewEIP155Signer(b.ChainConfig().ChainID), txs) errs := b.SendTxs(ctx, txs) var hashes []common.Hash for i, err := range errs { |