3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 23:32:16 +00:00

Fix BOBS bug introduced by my optimizations.

This commit is contained in:
Mike Hearn 2013-02-28 22:56:31 +01:00 committed by Mike Hearn
parent fb56237de8
commit 61410adbaa

View File

@ -114,7 +114,7 @@ public class BoundedOverheadBlockStore implements BlockStore {
buf.put(EMPTY_BYTES, 0, CHAIN_WORK_BYTES - chainWorkBytes.length);
}
buf.put(chainWorkBytes);
buf.put(block.getHeader().bitcoinSerialize());
buf.put(block.getHeader().cloneAsHeader().bitcoinSerialize());
buf.position(0);
channel.position(channel.size());
if (channel.write(buf) < Record.SIZE)