aboutsummaryrefslogtreecommitdiffstats
path: root/internal
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-04-09 21:32:54 +0800
commit622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7 (patch)
tree995b1db1cb20fc0fecb240338d089f0c49d1d986 /internal
parentc11db35c2d3f5ca5f4b5749294e154f10ef6b1c1 (diff)
downloaddexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.tar
dexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.tar.gz
dexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.tar.bz2
dexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.tar.lz
dexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.tar.xz
dexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.tar.zst
dexon-622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7.zip
core: various changes on tps tuning (#46)
Diffstat (limited to 'internal')
-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 3dec0b114..a0b79329c 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -1290,6 +1290,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 {