Open jaros1 opened 6 years ago
Do not send two identical pubkeys message to other wallet. Worst case if all JS checks fails: 2 pubkeys messages => 2 w2_check_mt messages => 2 w2_start_mt messages => double transaction. There must be xxx_sent_at timestamp for each step in process.
Added JS code in W2 to prevent double approval of an incoming money transaction. Disabled some functions while approving money transaction. Must also add some status info in MN chat to disable buttons. internal status messages from w2 session or read files with status info
todo: add state info to money transaction message. blank, approved, rejected, edited
There has been added money transaction status info from two wallets to chat msg. But generic text messages. Cannot be used as money transaction state (blank, approved, rejected, edited etc).
Prevent actions like second approval, reject, edit, delete message. And do not allow two appproval
127.0.0.1-1511450634124.log