New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output spent in mempool not taken into account #759
Comments
Could be related to #757 |
Hm, interesting. |
I'm about to go to sleep. @ouziel-slama, thoughts? |
This hacky workaround fixes the issue for me: http://pastebin.com/G4Usp9u0 |
@ouziel-slama: I could not cherry-pick the patches from master/HEAD. Could you please post the patch sequence to cherry-pick changes? (Probably including other changes). I tried the develop branch but counterpartyd crashed. Here is the backtrace: http://pastebin.com/qGumU9nb |
@arhuaco: seems you get an asset conservation error. Just catch up mainnet database with the develop branch and works well. Can you try to reparse the database and then restart the server: |
I deleted the XCP database (rm .local/share/counterparty/counterparty.testnet.db) and it started parsing blocks (starting with block 100). But it crashed. It seems there is a coinbase transaction to an address where I had previously sent assets. I think this might be triggering the exception. It crashed at block 117: http://pastebin.com/ycSWG5i7 Here are the block contents: |
hum.. really weird, for testnet the first block is 310000.. are you running regnet instead testnet ? |
Yes, I'm running regtest. But if this happens here it can probably happen in testnet/mainnet. But then in testnet it would be harder to reproduce the exception because to get a coinbase transaction you would have to mine a block. Unlikely but could happen. Shall I open a new issue for this? I will start from scratch just to test that the issue that we are dealing with is solved, and keep this docker image in case we want to test again later. I'll report back soon. Testing... |
coinbase transactions are ignored and should not raise a bug (see here: https://github.com/CounterpartyXCP/counterpartyd/blob/develop/counterpartylib/lib/blocks.py#L549)... |
I still see the issue: http://pastebin.com/8CtjJ3Ry |
Branch "develop" worked in one of the testing environments, in the one I was using when I reported the issue. Maybe I did something wrong in the other test. I'll do it again and report back. In any case, for it to work I had to apply this: http://pastebin.com/3N6gyzcn The program crashes when the number of XCP held is 0 because held[asset] returns None. PS: There is a weird char after "issued" that cannot be encoded and makes Python crash. I deleted it in the fix I applied. |
I confirm develop works: http://pastebin.com/cMnLJQFB PS: Yeah, my locale was wrong. Running 'perl' was revealing: http://pastebin.com/wZjGkXrr |
great! thanks for the feedback! |
Seems this was solved. |
I ran into a weird issue where sending an asset twice created the same raw transaction. The root cause is:
bitcoin-0.10.0/bin/bitcoin-cli searchrawtransactions ADDR
Returns outputs that are in the mempool, so they are (trying to be) spent but appear to be unspent to Counteparty.
Check this for an example: http://pastebin.com/ivLrnWcQ
I confirmed this happens both in testnet and regtest.
Why is this bad: It doesn't allow you to send more transactions until the current one is confirmed.
The text was updated successfully, but these errors were encountered: