This commit is contained in:
obscuren
2014-10-21 13:25:31 +02:00
parent 10b252dd05
commit 520fdfe346
7 changed files with 38 additions and 411 deletions
+4 -2
View File
@@ -130,7 +130,7 @@ func CreateBlock(root interface{},
Nonce: Nonce,
Time: time.Now().Unix(),
Extra: extra,
UncleSha: EmptyShaList,
UncleSha: EmptyShaList, //nil,
GasUsed: new(big.Int),
MinGasPrice: new(big.Int),
GasLimit: new(big.Int),
@@ -237,7 +237,9 @@ func (block *Block) SetUncles(uncles []*Block) {
block.Uncles = uncles
// Sha of the concatenated uncles
block.UncleSha = ethcrypto.Sha3(ethutil.Encode(block.rlpUncles()))
//if len(uncles) > 0 {
// block.UncleSha = ethcrypto.Sha3(ethutil.Encode(block.rlpUncles()))
//}
}
func (self *Block) SetReceipts(receipts []*Receipt, txs []*Transaction) {
+2 -1
View File
@@ -18,8 +18,9 @@ var EmptyShaList = ethcrypto.Sha3(ethutil.Encode([]interface{}{}))
var GenesisHeader = []interface{}{
// Previous hash (none)
ZeroHash256,
// Sha of uncles
ethcrypto.Sha3(ethutil.Encode([]interface{}{})),
// Empty uncles
//"",
// Coinbase
ZeroHash160,
// Root state