From ce9dd85433e342b9ee13848414bc694921be1100 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 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 { -- cgit v1.2.3