core, eth, miner, xeth: clean up tx/receipt db accessors

This commit is contained in:
Péter Szilágyi
2015-10-22 15:43:21 +03:00
parent ae37a8013d
commit e86e0ecdc8
11 changed files with 359 additions and 235 deletions

View File

@ -81,7 +81,7 @@ func TestPutReceipt(t *testing.T) {
Index: 0,
}}
PutReceipts(db, types.Receipts{receipt})
WriteReceipts(db, types.Receipts{receipt})
receipt = GetReceipt(db, common.Hash{})
if receipt == nil {
t.Error("expected to get 1 receipt, got none.")