good morning!!!!

Skip to content
Snippets Groups Projects
Commit 27aae603 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Merge branch 'hotfix/2' into develop

parents de87e436 3b38df08
Branches
Tags
No related merge requests found
...@@ -223,7 +223,15 @@ func (block *Block) SetTransactions(txs []*Transaction) { ...@@ -223,7 +223,15 @@ func (block *Block) SetTransactions(txs []*Transaction) {
trie.Update(strconv.Itoa(i), string(tx.RlpEncode())) trie.Update(strconv.Itoa(i), string(tx.RlpEncode()))
} }
switch trie.Root.(type) {
case string:
block.TxSha = []byte(trie.Root.(string)) block.TxSha = []byte(trie.Root.(string))
case []byte:
block.TxSha = trie.Root.([]byte)
default:
panic(fmt.Sprintf("invalid root type %T", trie.Root))
}
} }
func (block *Block) Value() *ethutil.Value { func (block *Block) Value() *ethutil.Value {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment