diff options
author | Martin Holst Swende <martin@swende.se> | 2018-01-31 01:03:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-31 01:03:31 +0800 |
commit | 017b9f7eacd1048661b22b7892caf680deb2b548 (patch) | |
tree | e94115fdb225e7da6fe046fde71ce0e53bb15b23 /core | |
parent | 6198c53e28200b3a575f4545cbfa83c585e44b76 (diff) | |
download | go-tangerine-017b9f7eacd1048661b22b7892caf680deb2b548.tar.gz go-tangerine-017b9f7eacd1048661b22b7892caf680deb2b548.tar.zst go-tangerine-017b9f7eacd1048661b22b7892caf680deb2b548.zip |
core, ethdb: reuse database batches (#15989)
* leveldb: Update leveldb to 211f780 (poolfix)
* core, ethdb: reuse database batches
Diffstat (limited to 'core')
-rw-r--r-- | core/blockchain.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index f886ffe4e..1bda95231 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -749,7 +749,7 @@ func (bc *BlockChain) InsertReceiptChain(blockChain types.Blocks, receiptChain [ return 0, err } bytes += batch.ValueSize() - batch = bc.chainDb.NewBatch() + batch.Reset() } } if batch.ValueSize() > 0 { |