adshares / ads

ADS Blockchain
Other
21 stars 4 forks source link

Invalid change_node_key response for remote node #158

Closed PawelPodkalicki closed 5 years ago

PawelPodkalicki commented 6 years ago

If function change_node_key is called with node parameter different than user node, response is invalid. When node exists reponse has result field with text Node key changed.

If node doesn't exist error message is Setting key for remote bank failed, which is correct behaviour.

jzemlo commented 6 years ago

Setting remote node key is a valid operation only on a node that is in double-spent state. Client should check for this condition before accepting transaction.