added tx tests and fixed block tests

This commit is contained in:
obscuren
2015-03-25 17:05:29 +01:00
parent 65ea55bccd
commit 505f1fbcbb
4 changed files with 59 additions and 4 deletions

View File

@ -195,7 +195,7 @@ func (sm *BlockProcessor) processWithParent(block, parent *types.Block) (td *big
return
}
// The transactions Trie's root (R = (Tr [[H1, T1], [H2, T2], ... [Hn, Tn]]))
// The transactions Trie's root (R = (Tr [[i, RLP(T1)], [i, RLP(T2)], ... [n, RLP(Tn)]]))
// can be used by light clients to make sure they've received the correct Txs
txSha := types.DeriveSha(block.Transactions())
if txSha != header.TxHash {