commerceblock / mercurylayer

A Blinded implementation of mercury statechains
55 stars 11 forks source link

Coin become invalid for send if sign second step interrupted #65

Closed DhananjayPurohit closed 1 month ago

DhananjayPurohit commented 3 months ago

On interrupting signSecond() function by disconnecting the mercury server and then trying sending the same coin through transferSend() works fine but on receiving it through transferReceive(), it gives an empty array in received_statechain_ids. (https://github.com/commerceblock/mercurylayer/blob/debug/coin-validation-if-sign-second-interrupt/clients/apps/nodejs/test_basic_workflow2.js#L706)

Withdrawing a coin after signSecond() is working fine though.