danielmcclure / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 1 forks source link

Transaction did not deserialize completely #494

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried importing the 'correct horse battery staple' brainwallet private key 
(default of http://brainwallet.org/)
with wallet-tool, then after it was syncing for a while it started to have 
errors writing the wallet, I hit control-c, now if i try to continue the sync 
or even dump the wallet I get the following error:

com.google.bitcoin.store.UnreadableWalletException: Transaction did not 
deserialize completely: 
c9569ac9a09b6f8a8b84fe7313e48529cab5be26530d85393b469c54e2b0e1ca vs 
35e79ee733fad376e76d16d1f10088273c2f4c2eaba1374a837378a88e530005
        at com.google.bitcoin.store.WalletProtobufSerializer.readTransaction(WalletProtobufSerializer.java:560)
        at com.google.bitcoin.store.WalletProtobufSerializer.readWallet(WalletProtobufSerializer.java:435)
        at com.google.bitcoin.store.WalletProtobufSerializer.readWallet(WalletProtobufSerializer.java:364)
        at com.google.bitcoin.tools.WalletTool.main(WalletTool.java:346)

This is with commit cebebcef69626a378113c4ea1b86d09ae4b6eb4a
$ java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (fedora-2.4.3.0.fc19-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Also got the same error in my gentoo ~amd64 install

Original issue reported on code.google.com by antrat on 7 Dec 2013 at 1:13

GoogleCodeExporter commented 9 years ago
I'm pretty sure this has to do with the version of that TX being strange, 
http://blockexplorer.com/rawtx/35e79ee733fad376e76d16d1f10088273c2f4c2eaba1374a8
37378a88e530005 shows "ver":-2130706433,

Original comment by antrat on 7 Dec 2013 at 8:00