diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-22 17:34:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-22 17:34:59 +0800 |
commit | 836ed9d6b70e3ae928624f9ed81ed206a66b85b8 (patch) | |
tree | e6f267f3cac06ef76bef339168e06e92215d5791 /ethutil/value.go | |
parent | a9f9a594160405737657083476535f3e48df1558 (diff) | |
download | go-tangerine-836ed9d6b70e3ae928624f9ed81ed206a66b85b8.tar.gz go-tangerine-836ed9d6b70e3ae928624f9ed81ed206a66b85b8.tar.zst go-tangerine-836ed9d6b70e3ae928624f9ed81ed206a66b85b8.zip |
Write Protocol version to the db so we can perform sanity checks
Diffstat (limited to 'ethutil/value.go')
-rw-r--r-- | ethutil/value.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethutil/value.go b/ethutil/value.go index 608d332ba..b336345ca 100644 --- a/ethutil/value.go +++ b/ethutil/value.go @@ -141,6 +141,8 @@ func (val *Value) Bytes() []byte { return []byte(s) } else if s, ok := val.Val.(*big.Int); ok { return s.Bytes() + } else { + return big.NewInt(val.Int()).Bytes() } return []byte{} |