oh right, another fun thing I forgot about

When there's only the coinbase tx, the merkle root = the coinbase txid.
Needless complication in bitcoin == job security?
This commit is contained in:
Tadge Dryja committed 2016-01-19 10:59:13 -08:00
1 parent 7dbf4a4a4f
commit 709b8a05cd
2 files changed
+3 -3

No files matched your search

+3
View File
@@ -5,6 +5,8 @@ import (
"fmt"
"log"
"li.lan/labs/uwallet"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/bloom"
@@ -72,6 +74,7 @@ func (t *TxStore) IngestTx(tx *wire.MsgTx) error {
inTxid := tx.TxSha()
height, ok := t.OKTxids[inTxid]
if !ok {
log.Printf("False postive tx? %s", uwallet.TxToString(tx))
return fmt.Errorf("we don't care about tx %s", inTxid.String())
}