2qx / unspent

₿∙ϕ - Unspent Phi (an app, library, cli & db) for executing a set of anyone-can-spend contracts on Bitcoin Cash.
https://unspent.app
The Unlicense
3 stars 2 forks source link

Error: Transaction failed with reason: Failover Broadcast Network Providers exhausted, bailing #52

Open minisat0shi opened 10 months ago

minisat0shi commented 10 months ago

Error: Transaction failed with reason: Failover Broadcast Network Providers exhausted, bailing meep debug --tx=0200000001609fb0df164b47503ef7a7d0557b65e728331caa1f5f05d9f24ff5960549a00d01000000624c6002a00102dc051976a914b690a67edcf49dd1b7ca3b7a7d4966ffa5bf6a3b88ac0164c252a269b275c3519dc0c676547a9600cd537a887602e803a06300cc78a2696e9453799451cdc0c78851cc78a26975677853799400cc78a26975686d7551640000000224040000000000001976a914b690a67edcf49dd1b7ca3b7a7d4966ffa5bf6a3b88ac6daf06000000000023aa20a2850bd698ed0e77ffd014f891884e8c66cdfcd5dcae959ce121ecc85f6ffa068713870c00 --idx=0 --amt=440683 --pkscript=a91408bbd5adccd493ae54c0b7de3a71b9cc4af5f06c87

minisat0shi commented 10 months ago

Sorry for the close and re-open. Checking if this is an issue of sorts? was able to broadcast the contract but not able to "Spend," which appears to be what executes the contract. Tested this on multiple contracts. Don't see documentation for this button though so maybe it is unnecessary or does something different?

2qx commented 10 months ago

Yep. This is a bug.

The app/library is grouping inputs, but with version 2, only one input should be used.

I manually stepped the four UTXOs of your test contract forward, hopefully the fix can be pushed within 100 blocks.

minisat0shi commented 10 months ago

aha - appreciate it! Well, it appears I get payouts but every ~270 confirmations. Not sure what else these would be from, so likely from your manual intervention.

minisat0shi commented 10 months ago

Ok, so I've tried this twice more, each with one transaction. I can broadcast the transaction but cannot "Spend" it without the above error. Included two more errors below. I'm following instructions to the letter (unless I'm being dumb), so unsure if things change?

Error: Transaction failed with reason: Failover Broadcast Network Providers exhausted, bailing meep debug --tx=0200000001c4710e04ba3a8298038f9b90f9ed140f7e44c329d6dfad9e69a220a59ec6bf2a01000000604c5e016402dc051976a91480fa958fd15292fa8573299d372031c44348211388ac5ac252a269b275c3519dc0c676547a9600cd537a887602e803a06300cc78a2696e9453799451cdc0c78851cc78a26975677853799400cc78a26975686d75510a0000000312110000000000001976a91480fa958fd15292fa8573299d372031c44348211388acfb9306000000000023aa2086386e9473c7b1a08a5e8d372c7563ced194810f72d86a9a1bcb7032e587e62a87d7040000000000001976a914b690a67edcf49dd1b7ca3b7a7d4966ffa5bf6a3b88ac048b0c00 --idx=0 --amt=436967 --pkscript=a9144c9b38eee5c268e6a56d2945be0840b7859a19a887

Error: Transaction failed with reason: Failover Broadcast Network Providers exhausted, bailing meep debug --tx=02000000015a2034c8ec36a684ad9c5ffc36c72f2d4a1ad199f9a4adf722c7a3892a43ad8702000000624c6002080702dc051976a91480fa958fd15292fa8573299d372031c44348211388ac013cc252a269b275c3519dc0c676547a9600cd537a887602e803a06300cc78a2696e9453799451cdc0c78851cc78a26975677853799400cc78a26975686d75513c000000037e090000000000001976a91480fa958fd15292fa8573299d372031c44348211388ac1fae42000000000023aa20b63ce5c3443fabd501b4e1fdf7a3660c42f856ee2dfb9bba7ed477cd906a094f87d5040000000000001976a914b690a67edcf49dd1b7ca3b7a7d4966ffa5bf6a3b88ac048b0c00 --idx=0 --amt=4373879 --pkscript=a9141fa283d124f2e3eb1c374f2bd3cbdbcdb53d2fcd87

minisat0shi commented 10 months ago

Is that "Spend" button no longer necessary? Does the broadcast button handle everything?

2qx commented 10 months ago

The app is having trouble filtering UTXOs by age. But it can be done manually.

When the three smaller UTXOs are liquidated, the last larger coin should work with just the Spend button.

image

minisat0shi commented 10 months ago

ah, sorry, for some clarity, I tried creating three separate contracts, each with one UTXO

2qx commented 10 months ago

If the parameters of the contracts are the same (period, fee, etc) then it resolves to the same unlocking code, which means they're all on an identical address, they all run in parallel with the same logic.

minisat0shi commented 10 months ago

So I tried different variations - I actually had three different periods for each, also different sat inputs (one like 4M, one 400k, another similar but not the same 400k). I could be missing something here (and no worries not concerned about the funds!)

2qx commented 10 months ago

What were the other block periods, and has that time elapsed yet?

minisat0shi commented 10 months ago

one was 100 blocks, one was 1 block, don't remember the other (maybe 10). So all periods elapsed but don't see the payouts