hashblock / hashblock-exchange

Sawtooth transaction families for an event accounting distributed ledger application
MIT License
8 stars 1 forks source link

Validation gaps #63

Closed arthurgreef closed 6 years ago

arthurgreef commented 6 years ago

Validate plus/minus in exchanges i:p/m = r:p/m. Validate units and resources units in exchanges.

FrankC01 commented 6 years ago

Shouldn't it be i:p/m = r:m/p ?

FrankC01 commented 6 years ago

It turns out to be a typo in the original comment above. In the match TP, the validation (when servicing a reciprocating event) shall be:

if i:p != r:m or i:m != r:p then raise exception