From 622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 26 Nov 2018 10:00:31 +0800 Subject: core: various changes on tps tuning (#46) --- internal/ethapi/api.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/ethapi') 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 { -- cgit