bitshares / bitshares1-core

Software to run the old chain (before 2015-10-13). Code for current chain is https://github.com/bitshares/bitshares-core
https://bitshares.org/
The Unlicense
219 stars 174 forks source link

Expired transactions.. what is going on? #533

Closed bytemaster closed 10 years ago

bytemaster commented 10 years ago

getting following message

2014-07-19T17:59:40 5263      chinese             chinese             0.00000 BTSX            register chinese as a delegate              0.10037 BTSX        ce57119
2014-07-19T18:03:37 EXPIRED   chinese             pan2pan             0.00000 BTSX            register pan2pan as a delegate              0.10032 BTSX        023d9ce
2014-07-19T18:06:30 EXPIRED   chinese             ebay                0.00000 BTSX            register ebay as a delegate                 0.10032 BTSX        75acf64
2014-07-19T18:08:49 EXPIRED   chinese             amazon              0.00000 BTSX            register amazon as a delegate               0.10052 BTSX        3813980
vikramrajkumar commented 10 years ago
[10:42:13] Denny Wang: [14-7-24 下午11:22:00] linhan.ee: we got many expired send-out transactions like this:
[14-7-24 下午11:22:01] linhan.ee: 2014-07-24T08:25:16 EXPIRED   btercom             neuronics           41,696.64249 BTSX       from bter                                   N/A                     0.10000 BTSX        704d8600
2014-07-24T11:02:17 EXPIRED   btercom             jochen              4,949.00000 BTSX        from bter                                   N/A                     0.10000 BTSX        b054a048
2014-07-24T12:41:02 EXPIRED   btercom             rayray              2,226.47782 BTSX        from bter                                   N/A                     0.10000 BTSX        84c0443b
2014-07-24T13:15:30 EXPIRED   btercom             john-galt           9,879.20000 BTSX        from bter                                   N/A                     0.10000 BTSX        73308a13
2014-07-24T13:42:31 EXPIRED   btercom             thulium             197.00000 BTSX          from bter                                   N/A                     0.10000 BTSX        e4b9c991
2014-07-24T15:50:44 EXPIRED   btercom             btercom             44,549.00000 BTSX       from bter                                   N/A                     0.10000 BTSX        74a01bac
2014-07-24T16:03:33 EXPIRED   btercom             yuzu                44,549.00000 BTSX       from bter                                   N/A                     0.10000 BTSX        c8359c66
2014-07-24T16:36:45 EXPIRED   btercom             riverhead           44,549.00000 BTSX       from bter                                   N/A                     0.10000 BTSX        8ba8a5c1
2014-07-24T16:42:51 EXPIRED   btercom             thedon              5,904.39672 BTSX        from bter                                   N/A                     0.10000 BTSX        41b46048
2014-07-24T16:46:21 EXPIRED   btercom             robrigo             44,549.00000 BTSX       second                                      N/A                     0.10000 BTSX        0f1e207d
2014-07-24T17:04:06 EXPIRED   btercom             mjm                 98.00000 BTSX           test3                                       N/A                     0.10000 BTSX        7c1f721e
2014-07-24T17:26:42 EXPIRED   btercom             sergey37            2,325.50000 BTSX        from bter
[14-7-24 下午11:36:16] linhan.ee: we have to disable the withdrawal now. All the new withdrawals did not get confirmed. Please help us to get a solution. thanks
[14-7-25 上午12:30:53] linhan.ee: we have upgraded to new version 2.3 we still have the insufficient funds error from wallet_transfer
[14-7-25 上午12:43:13] linhan.ee: another bug in the client. when we can a wallet_transfer today, the wallet crashed with an error: terminate called without an active exception
[14-7-25 上午10:40:31] linhan.ee: Got a segmentation fault just now: 4105 Segmentation fault      ./bitshares_client
[10:42:44] Denny Wang: I'm creating an issue for them, any suggestions to the exchange?
vikramrajkumar commented 10 years ago
[04:08:06] bter: The 3third bug: after 2 days running, when we send out transactions, we got this:   [detail] => 0 exception: unspecified
error during aes 256 cbc decrypt final
    {"s":"error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt"}
    th_a  aes.cpp:263 aes_decrypt
[12:10:23] Vikram Rajkumar: Hi, the "wallet_open" crash and the "exit" crash should be fixed in the next update that we will release soon.
[12:10:52] Vikram Rajkumar: I will look into the 3rd crash. Thank you for the error messages and gdb messages
[12:12:40] bter: Vikram, thank for your great support. The most anoying thing is that we have to restart the client like everything two days to fix a wallet_transfer problem
[12:13:14] bter: after days running, all the sending out transactions stuck with a pending status
[12:13:27] bter: and later become "EXPIRED"
[12:13:50] bter: then, we have to restart the client, rescan the blockchain, and re-send all the expired transactions
[12:14:07] bter: that's why I was asking how to restart the client and load the wallet automatically
[12:19:25] Vikram Rajkumar: Thank you for the detailed description. So it is always after *exactly* 2 days that this problem happens?
[12:20:21] bter: the exactly but almost, I have done it 3 times in a week
[12:21:20] bter: people will complain that they didn't receive their withdrawals. I will check the BTSX client and I can see many expired or pending transactions
[12:22:17] bter: After I restart the client, rescan the blockchain, the pending transactions usually go through but I have to resend the expired transactions manually
[12:27:13] Vikram Rajkumar: Thank you. The fact that this happens only after about 2 days is a good clue, because transactions in our network are only valid for 48 hours after the time they are created. So there may be a bug somewhere with the expiration checking. I will look into it
[12:29:38] bter: Actually, if I don't restart the client, all new send-out transactions don't go though successfully but become "pending"
[12:29:57] bter: until later they turn into "expired"
[12:31:20] bter: After I restart the client and rescan the blockchain, all the accumulated "pending" send-out transactions go though successfully and new send-out transactions get confirmed almost instantly
[12:32:04] bter: but after several days (like 2), pending transaction issue happens again
vikramrajkumar commented 10 years ago

This is part of the known stuck pending issue. Transactions that are stuck pending and don't get confirmed expire after the default 2 hour expiration time currently used by the wallet.