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:
1 parent
7dbf4a4a4f
commit
709b8a05cd
2 files changed
+3
-3
No files matched your search
@@ -77,9 +77,6 @@ func checkMBlock(m *wire.MsgMerkleBlock) ([]*wire.ShaHash, error) {
|
||||
if len(m.Flags) == 0 {
|
||||
return nil, fmt.Errorf("No flag bits")
|
||||
}
|
||||
if len(m.Hashes) < 2 { // nothing but the merkle root
|
||||
return nil, nil // nothin.
|
||||
}
|
||||
var s []merkleNode // the stack
|
||||
var r []*wire.ShaHash // slice to return; txids we care about
|
||||
|
||||
|
||||
Reference in new issue
Block a user