diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 21:44:09 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 21:44:09 +0800 |
commit | ac03ff6f055ef2bd9404a30a0c257fdd2722eafe (patch) | |
tree | 6cfcc4b9fb5a3371916df813974e767ea22ce88e /rpc/responses.go | |
parent | 6e8ff578f18473d7c4fe013a88d2bece1ecf65d1 (diff) | |
download | dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.gz dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.bz2 dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.lz dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.xz dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.tar.zst dexon-ac03ff6f055ef2bd9404a30a0c257fdd2722eafe.zip |
Fix block size output #613
Diffstat (limited to 'rpc/responses.go')
-rw-r--r-- | rpc/responses.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/responses.go b/rpc/responses.go index 0f67299fc..41776a0be 100644 --- a/rpc/responses.go +++ b/rpc/responses.go @@ -49,7 +49,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes { res.Miner = newHexData(block.Header().Coinbase) res.Difficulty = newHexNum(block.Difficulty()) res.TotalDifficulty = newHexNum(block.Td) - res.Size = newHexNum(block.Size()) + res.Size = newHexNum(block.Size().Int64()) res.ExtraData = newHexData(block.Header().Extra) res.GasLimit = newHexNum(block.GasLimit()) // res.MinGasPrice = |