aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi/api.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-26 10:00:31 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commitf79bf330b4b649ea74d54faf749214c14f32af9c (patch)
tree1cf494fda8e45813c6e4062a587dfd3ecf1d5a54 /internal/ethapi/api.go
parentb4f183ba63e3ab5dccc6371faaa57c77b61e967b (diff)
downloaddexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar
dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.gz
dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.bz2
dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.lz
dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.xz
dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.tar.zst
dexon-f79bf330b4b649ea74d54faf749214c14f32af9c.zip
core: various changes on tps tuning (#46)
Diffstat (limited to 'internal/ethapi/api.go')
-rw-r--r--internal/ethapi/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index 7ea7cf2aa..43553bece 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -1281,6 +1281,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 {