tokenly / xchain

A public web service for BTC and XCP transactions
5 stars 7 forks source link

Add request GUIDs #8

Closed deweller closed 9 years ago

deweller commented 9 years ago

Allow the client to supply a guid for mutating requests such as create or send.

If a client calls a second time with the same request GUID, then instead of performing the operation a second time, return the results from the first operation.

This handles situations such as timeouts or network faults where XChain might have submitted a transaction to the blockchain, but did not notify the client. It prevents multiple transactions from being submitted to the blockchain when only one is intended.

deweller commented 9 years ago

Thanks @AdamBLevine for this solution. :bow: