ledgerloops / ledgerloops.com

Contents of https://ledgerloops.com
https://ledgerloops.com
9 stars 0 forks source link

flatten incomingMsgObj before calling generateReactions #58

Closed michielbdejong closed 7 years ago

michielbdejong commented 7 years ago

Since some of the new message formats have nested objects, things became very messy in the SettlementEngine. Also, it now needs to keep some state about outstanding and funding/funded transactions, and the code for that could also do with a little cleanup. Lastly, the integration test for settlements doesn't test the initiateNegotiation function, instead faking it by setting private vars - should clean that up as well.

michielbdejong commented 7 years ago

this will change when creating a small npm module for ledgerloops, see https://github.com/ledgerloops/ledgerloops-webcrypto/issues/4