Skip to content
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

Some boosts not (?) going through to API #170

Open
usselman opened this issue Jul 29, 2023 · 1 comment
Open

Some boosts not (?) going through to API #170

usselman opened this issue Jul 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@usselman
Copy link
Contributor

It appears that some boosts are not going through to the API, despite not giving an ERROR.

For example, this post: https://whatsonchain.com/tx/49b7e70de28f787e09e3de364d4c4177d40f089fd645e2cec72ca49d7b179db3
I boosted into the tag 1owenkellogg a few days ago and I don't think it has gone through.

This post as well: https://pow.co/072633cc05e48a99aa8cf4b6dcfcbd020b923b1bd480c9b827a028aec7df5575
I boosted into several tags but appears to have 0 difficulty mined, 16 days later.

@usselman usselman added the bug Something isn't working label Jul 29, 2023
@owenkellogg
Copy link
Contributor

My hypothesis is that there is a race condition when submitting jobs via txid where we fetch the transaction from whatsonchain by txid but it does not exist therefore gives a 404 error, and rather than returning an error to the user it simply returns an empty array [].

One reasonable solution is to have pow.co submit the entire serialized transaction hex to boostpow-api and have boostpow-api broadcast the transaction. I think we might have done this but there was another race condition where if the transaction had already been seen by whatsonchain then a 400 error was returned "tx already in mempool". In that case we should still import the job rather than returning an error, but I think we were not handling that 400 response correctly and instead returned an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants