forked from cerc-io/plugeth
Empty string for uncle
This commit is contained in:
parent
520fdfe346
commit
6b92d541da
@ -130,7 +130,7 @@ func CreateBlock(root interface{},
|
|||||||
Nonce: Nonce,
|
Nonce: Nonce,
|
||||||
Time: time.Now().Unix(),
|
Time: time.Now().Unix(),
|
||||||
Extra: extra,
|
Extra: extra,
|
||||||
UncleSha: EmptyShaList, //nil,
|
UncleSha: nil,
|
||||||
GasUsed: new(big.Int),
|
GasUsed: new(big.Int),
|
||||||
MinGasPrice: new(big.Int),
|
MinGasPrice: new(big.Int),
|
||||||
GasLimit: new(big.Int),
|
GasLimit: new(big.Int),
|
||||||
@ -237,9 +237,9 @@ func (block *Block) SetUncles(uncles []*Block) {
|
|||||||
block.Uncles = uncles
|
block.Uncles = uncles
|
||||||
|
|
||||||
// Sha of the concatenated uncles
|
// Sha of the concatenated uncles
|
||||||
//if len(uncles) > 0 {
|
if len(uncles) > 0 {
|
||||||
// block.UncleSha = ethcrypto.Sha3(ethutil.Encode(block.rlpUncles()))
|
block.UncleSha = ethcrypto.Sha3(ethutil.Encode(block.rlpUncles()))
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *Block) SetReceipts(receipts []*Receipt, txs []*Transaction) {
|
func (self *Block) SetReceipts(receipts []*Receipt, txs []*Transaction) {
|
||||||
|
@ -18,9 +18,8 @@ var EmptyShaList = ethcrypto.Sha3(ethutil.Encode([]interface{}{}))
|
|||||||
var GenesisHeader = []interface{}{
|
var GenesisHeader = []interface{}{
|
||||||
// Previous hash (none)
|
// Previous hash (none)
|
||||||
ZeroHash256,
|
ZeroHash256,
|
||||||
ethcrypto.Sha3(ethutil.Encode([]interface{}{})),
|
|
||||||
// Empty uncles
|
// Empty uncles
|
||||||
//"",
|
"",
|
||||||
// Coinbase
|
// Coinbase
|
||||||
ZeroHash160,
|
ZeroHash160,
|
||||||
// Root state
|
// Root state
|
||||||
|
Loading…
Reference in New Issue
Block a user