-
Notifications
You must be signed in to change notification settings - Fork 204
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
jmcorgan
address index not updated immediately upon tx broadcast
#521
Comments
jmcorgan
address index not updating upon tx broadcast (?)jmcorgan
address index not updated immediately upon tx broadcast (?)
jmcorgan
address index not updated immediately upon tx broadcast (?)jmcorgan
address index not updated immediately upon tx broadcast
I believe this is happening to me as well. when sending several transactions at once with unconfirmed outputs enabled, it will quickly run out of unspent inputs, and then all transactions after the first couple fail (bitcoind error -25.. no error message). Running the batch of transactions again a minute or so later, a couple more will succeed and then the rest again fail. Previously, it would just chain together the outputs of all the transactions and all would produce successful tx ids for example, when using this script: https://github.com/tokenly/tokenly-cms/blob/master/scripts/xcp-sendmany.py |
Ping @reorder |
@btcdrak This is not relevant to CH as of yet, as we combine addrindex transactions with mempool in addrindex driver. |
@reorder, can you elaborate on that? |
@adamkrellenstein This is what I was telling about previously as the patch is vastly superior to what was proposed. |
@btcdrak, I don't understand. The addrindex patch you applied to viacoin doesn't have this problem? |
@adamkrellenstein No, rather our driver accessing viacoin merges searchrawtransactions output with mempool. |
@adamkrellenstein Additionally for reference, we now have a patch now that will apply to Bitcoin Core |
Got it. @ouziel-slama, what do you think? |
In counterpartyd we are doing the same thing as viacoin:
About the error -25, since forever Bitcoin Core (not in particularly |
@ouziel-slama Our driver is much more complex see mempoolsearch and this |
@ouziel-slama for the error -25, yeah I have noticed that happening before with making around 30+ transactions, but with this patch that number has gone down to like around 5 or 6 at most. Looking at the payloads it is sending in the failed transactions, it looks like its trying to re-use unspent transactions which have already been used, causing them to fail. |
@btcdrak, nop! see the 4 functions following this line: After thoughts, maybe the last version is more sensitive not because @adamkrellenstein, what do you think to add in the config file a variable |
@ouziel-slama, why would that mempool line matter here? How would Is the delay because of https://github.com/CounterpartyXCP/counterpartyd/blob/master/lib/blocks.py#L1686 and https://github.com/CounterpartyXCP/counterpartyd/blob/master/lib/blocks.py#L1326? |
@adamkrellenstein, this line matter to avoid as much as possible RPC calls.
yes, and also by the time to parse transactions. |
Perhaps a correct way to solve this dilemma is to communicate with bitcoind over p2p, refreshing mempool cache on 'inv' messages. |
Fixed: #525 |
Reported by Bter.
The text was updated successfully, but these errors were encountered: