|
|
|
|
|
by indigo945
1016 days ago
|
|
The point is that there is no such thing as "2 separate transactions in 2 accounts" in banking. There is one global ledger that contains transaction between all accounts - if you move money from account A to account B, you append one entry to the ledger that says that some sum of money moved from A to B. Then if you need to calculate an account balance, you look at all transactions in the ledger, filter by the account ID, and calculate the total. (You can then cache this result, for performance benefits, but this changes nothing about the way it works.) This is really more like a CRDT than like transaction control. It's also where Bitcoin took its inspiration from, the blockchain is just one big ledger with some hashing on top. |
|