From 651691f3c7a726106c30d75388109b6ae02eb428 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 16 Apr 2018 11:10:54 -0400 Subject: [PATCH] TX struct --- shyftdb/shyft_database_util.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shyftdb/shyft_database_util.go b/shyftdb/shyft_database_util.go index 0c75308327..8c70cea88e 100644 --- a/shyftdb/shyft_database_util.go +++ b/shyftdb/shyft_database_util.go @@ -10,6 +10,10 @@ import ( "github.com/ethereum/go-ethereum/log" ) +type txEntry struct { + To +} + func WriteBlock(db *leveldb.DB, block *types.Block) error { leng := block.Transactions().Len() var tx_strs = make([]string, leng) @@ -33,6 +37,7 @@ func WriteBlock(db *leveldb.DB, block *types.Block) error { func WriteTransactions(db *leveldb.DB, transactions []*types.Transaction, blockHash []byte) error { for _, tx := range transactions { + key := append([]byte("tx-")[:], tx.Hash().Bytes()[:]...) if err := db.Put(key, []byte("Hello hello"), nil); err != nil { log.Crit("Failed to store TX", "err", err)