diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-21 01:20:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-21 01:20:04 +0800 |
commit | e837c9ab3fc94979dd79df9b70a3e7fda74263b9 (patch) | |
tree | ec5266983176f6583c8bb08d51467efeb9dd175a | |
parent | 4b13f93a3e0f2901a8e1aa38dfef115e24c63ef0 (diff) | |
parent | ad51c85e5d67ca2e64e95786e79d062c4467b4c1 (diff) | |
download | go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.tar go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.tar.gz go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.tar.bz2 go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.tar.lz go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.tar.xz go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.tar.zst go-tangerine-e837c9ab3fc94979dd79df9b70a3e7fda74263b9.zip |
Merge branch 'hotfix/1'
-rw-r--r-- | ethchain/block.go | 5 | ||||
-rw-r--r-- | peer.go | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ethchain/block.go b/ethchain/block.go index c6c2c1226..bdb243286 100644 --- a/ethchain/block.go +++ b/ethchain/block.go @@ -99,6 +99,9 @@ func CreateBlock(root interface{}, Time: time.Now().Unix(), Extra: extra, UncleSha: EmptyShaList, + GasUsed: new(big.Int), + MinGasPrice: new(big.Int), + GasLimit: new(big.Int), contractStates: make(map[string]*ethutil.Trie), } block.SetTransactions(txes) @@ -220,7 +223,7 @@ func (block *Block) SetTransactions(txs []*Transaction) { trie.Update(strconv.Itoa(i), string(tx.RlpEncode())) } - block.TxSha = trie.Root.([]byte) + block.TxSha = []byte(trie.Root.(string)) } func (block *Block) Value() *ethutil.Value { @@ -18,7 +18,7 @@ const ( // The size of the output buffer for writing messages outputBufferSize = 50 // Current protocol version - ProtocolVersion = 10 + ProtocolVersion = 11 ) type DiscReason byte |