chiark / gitweb /
currency: Many fixes to splitting
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 12:13:12 +0000 (13:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 14:15:30 +0000 (15:15 +0100)
commit8ca39cd7d6ed44913270b9c7eaac09eca9eeeff5
tree8e6c6ef3cb18cab7dcefce1547d8ab4569d30358
parent7861be1fe9ae0ece02c79c3105cf56d2c626d518
currency: Many fixes to splitting

This was quite broken.

* Actually set the value of the new (change) piece.
* Set the value of tghe taken piece correctly.
* Set the WRC so that clients see the taken piece value.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/currency.rs