Version should be written as an int, not a long (#17)

The version field is an integer. It is read in as an integer. Mistakenly, it is written as a long.

Signed-off-by: Peter  Robinson <drinkcoffee@eml.cc>
pull/20/head
Peter Robinson 5 years ago committed by Danno Ferrin
parent 1d74e60cf2
commit 5daf6a5a49
  1. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/worldstate/StateTrieAccountValue.java

@ -100,7 +100,7 @@ public class StateTrieAccountValue {
if (version != Account.DEFAULT_VERSION) {
// version of zero is never written out.
out.writeLongScalar(version);
out.writeIntScalar(version);
}
out.endList();

Loading…
Cancel
Save