stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

fixing async payout #1887

Closed Evanfeenstra closed 1 month ago

Evanfeenstra commented 1 month ago

Tribes logs:

2024/10/14 17:16:12 [bounty] After Making Bounty V2 Payment: amount: 55, pubkey: 0383bfea5622526908d6682ec7637837aed419ad14904bdc71c62d434e056e3653, route_hint: 034bcc332390470cc4f9ef7491af1da2ffceefccd39ceb6acd87c83920543013d7_529771090609569795 2024/10/14 17:16:12 [bounty] After Reading Keysend V2 Payment Body === 2024/10/14 17:16:12 [bounty] V2 Status After Making Bounty V2 Payment: amount: 55, pubkey: 0383bfea5622526908d6682ec7637837aed419ad14904bdc71c62d434e056e3653, route_hint: 034bcc332390470cc4f9ef7491af1da2ffceefccd39ceb6acd87c83920543013d7_529771090609569795 is : PENDING 2024/10/14 17:16:12 [bounty] V2 Status Was not completed: PENDING 2024/10/14 17:16:12 Keysend payment not completed ===

bot logs:

bot ===> BALANCE 180938548 =============== : bot <- // this is the first "ping" msg: => sent_status {"tag":"7833e0e2600712a79b36c5052c0d4ac9ed76dc49697ead4ad54e4d9822a6271a","status":"COMPLETE","preimage":"094ce6c3ac84a9eebad77c8cd9471df116a4b9dbbc87efc8f770a604c3c3bd9a","payment_hash":"8caf1682c1f8c7c0cd97ba8d3197b405f07823e1c2f3796e3820745e33545e4d"} // then you check sends, but too early: ====> get_sends [ '08795368bdac1c6ee5d359d1bbbce8fa07fcd8ec9d488de46906eb59ca1a5a78' ] =============== : bot <- bot's topics >>>>>>> [ '034b451f96eda1222afab69d3f8872b2ad53a8819830519983db34b80f5b1651a3/02524ae507230ffc4e178d845c20973ac8f6ae3f798700863ea4c7dc9c7dc4c4b3/0/req/bot-device/tags' ] =============== : bot <- => tags [] =============== : bot <- bot ===> BALANCE 180883548 =============== : bot <- // now the actual payment went through successfully => sent_status {"tag":"08795368bdac1c6ee5d359d1bbbce8fa07fcd8ec9d488de46906eb59ca1a5a78","status":"COMPLETE","preimage":"fb5dcd91dad3bf65a59c6c73bd94de4c3225831f53ffb5e0f1252da3cdf5868c","payment_hash":"3bd76552f15a76cacf16c59c684758b55041bea40d848546de543a4d3e9079ab"}