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/backend_test.go | |
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/backend_test.go')
-rw-r--r-- | eth/backend_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/eth/backend_test.go b/eth/backend_test.go index f60e3214c..4351b24cf 100644 --- a/eth/backend_test.go +++ b/eth/backend_test.go @@ -33,24 +33,15 @@ func TestMipmapUpgrade(t *testing.T) { genesis := new(core.Genesis).MustCommit(db) chain, receipts := core.GenerateChain(params.TestChainConfig, genesis, db, 10, func(i int, gen *core.BlockGen) { - var receipts types.Receipts switch i { case 1: receipt := types.NewReceipt(nil, new(big.Int)) receipt.Logs = []*types.Log{{Address: addr}} gen.AddUncheckedReceipt(receipt) - receipts = types.Receipts{receipt} case 2: receipt := types.NewReceipt(nil, new(big.Int)) receipt.Logs = []*types.Log{{Address: addr}} gen.AddUncheckedReceipt(receipt) - receipts = types.Receipts{receipt} - } - - // store the receipts - err := core.WriteReceipts(db, receipts) - if err != nil { - t.Fatal(err) } }) for i, block := range chain { |