swarm
swarm copied to clipboard
Use batch writes in swap for where applicable
At many points in Swap we need to set multiple database entries at the same time (e.g. setting a cheque as last received and adjusting the balance). We should do this in a single write to ensure inconsistencies cannot occur on the database level.