diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-07-15 00:39:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-15 00:39:53 +0800 |
commit | 0ff35e170d1b913082313089d13e3e6d5490839b (patch) | |
tree | 42b8eafa61c6e5894768c41a97d51e4e5427b50f /eth/filters | |
parent | 8d6a5a3581ce6221786eb464bfef7e8c31e7ad95 (diff) | |
download | go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.tar go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.tar.gz go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.tar.bz2 go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.tar.lz go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.tar.xz go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.tar.zst go-tangerine-0ff35e170d1b913082313089d13e3e6d5490839b.zip |
core: remove redundant storage of transactions and receipts (#14801)
* core: remove redundant storage of transactions and receipts
* core, eth, internal: new transaction schema usage polishes
* eth: implement upgrade mechanism for db deduplication
* core, eth: drop old sequential key db upgrader
* eth: close last iterator on successful db upgrage
* core: prefix the lookup entries to make their purpose clearer
Diffstat (limited to 'eth/filters')
-rw-r--r-- | eth/filters/filter_test.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index cd5e7cafd..b6cfd4bbc 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -82,12 +82,6 @@ func BenchmarkMipmaps(b *testing.B) { gen.AddUncheckedReceipt(receipt) } - - // store the receipts - err := core.WriteReceipts(db, receipts) - if err != nil { - b.Fatal(err) - } core.WriteMipmapBloom(db, uint64(i+1), receipts) }) for i, block := range chain { @@ -183,12 +177,6 @@ func TestFilters(t *testing.T) { gen.AddUncheckedReceipt(receipt) receipts = types.Receipts{receipt} } - - // store the receipts - err := core.WriteReceipts(db, receipts) - if err != nil { - t.Fatal(err) - } // i is used as block number for the writes but since the i // starts at 0 and block 0 (genesis) is already present increment // by one |