Write Protocol version to the db so we can perform sanity checks

This commit is contained in:
obscuren
2014-08-22 11:34:59 +02:00
parent a9f9a59416
commit 836ed9d6b7
2 changed files with 13 additions and 1 deletions

View File

@ -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{}