EndlessVanguard / bitcoin-remunerate-api

A scheme for trustless, decentralized, anonymous, remuneration for content creators.
1 stars 0 forks source link

bugfix: payout fails when no money to pay for contentId #21

Closed fromheten closed 8 years ago

fromheten commented 8 years ago

Been staring myself blind at this all day.

This code is pretty messy by now.

My change is to filter out transactions that have no input money. Can't pay what is not there. Found this out while trying it out on our server, for the demo on the landing page.

Gonna take a walk and rest, but the saga continues....

mattgstevens commented 8 years ago

Little bit messy, but better to have a working transaction payout.

Tracking it in #23

mattgstevens commented 8 years ago

rebased with the latest master; looks good to me. if you are happy with it then merge away 🚨

fromheten commented 8 years ago

Just FYI this code fixes nothing critical - just that we get better error messages and the code does more what we intend it to do.