consensusRealityIO / RSBP

Real Simple Bitcoin Payments
GNU General Public License v3.0
14 stars 25 forks source link

Intelligent TRX Fee Detection - Detect "Replace by Fee" and Low-Fee transactions #12

Closed dykstranet closed 7 years ago

dykstranet commented 8 years ago

With release 12.X of the bitcoin core client, Replace by Fee (RBF) has been implemented.

This presents a potential problem for Merchants because a customer could pay by bitcoin, take delivery of goods, and cancel/revert funds back to themselves.

RSBP needs to detect the presence of a RBF and low fee transactions and warn the merchant that it is necessary to wait for 1 confirmation before releasing goods.

RBF Links: https://bitcointalk.org/index.php?topic=199947.0

simonhorlick commented 7 years ago

There are already some free APIs online that mark whether transactions have opt-in-rbf enabled. See this one for instance: https://www.blockcypher.com/dev/bitcoin/#tx

The RSBP code could call out to that and decide whether to display a message?

dykstranet commented 7 years ago

opt_in_rbf bool Optional Returns true if this transaction has opted in to Replace-By-Fee (RBF), either true or not present. You can read more about Opt-In RBF here.

dykstranet commented 7 years ago

For this kind of API call, would be good to have a second source of information; a second, distinct, independent API provider of the very same information.

dykstranet commented 7 years ago

This issues was resolved by @infertux