The source for the catcrafts.net website
- C++ 85.3%
- Shell 11.2%
- CSS 2.9%
- WGSL 0.4%
- JavaScript 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
A payer could place several orders and send one transfer naming all of them. Each order looked for its own reference, found it, and saw the full amount, so every order settled on one payment: three EUR 5 orders on a single EUR 5 credit, reproduced. The rail logged "settle this one by hand" and settled each of them. The README called it a known limitation; it was a way to pay once for several orders. The rail now records which payment settled which order, by the bank's id, in <credits>.claims, before it reports the order paid, and a claimed payment is left out of every other order's sum. The record cannot live in the credits file, which the pull replaces every hour. It is read back at start. If it cannot be written the rail settles nothing and says why; if it is there and cannot be read the rail does not start. A claims file that ends mid-line gets its line break before the next claim, or that claim would be lost at the next start and the payment free again. It does not rest on what a description looks like, because the payer writes it. The "also quotes another reference" flag stays as a pointer in the log and decides nothing: a name followed by a date has the same shape. A payer who really sends one transfer for two orders gets the first settled and the other by hand, with one line in the journal. One payment is also counted once however many lines of the credits file carry its id. Two lines are not meant to happen and were reproduced all the same (one callback delivered on two connections at once passed the id check twice), and summed they settle an order on half its price. The callback's look-then-append is now under a lock as well. ShouldMatchBankTransfers drives the matcher and the rail itself across a restart, a torn claims file, an unreadable one and a duplicated line; ShouldSettleBankTransfers shows over HTTP that one of three orders settles. Found in the security review of 2026-11-26; the torn claims file and the duplicate line by the adversarial review of the first fix. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> |
||
| .forgejo/workflows | ||
| content | ||
| deploy | ||
| images | ||
| implementations | ||
| interfaces | ||
| server | ||
| shaders | ||
| shared/interfaces | ||
| styles | ||
| tests | ||
| tools | ||
| .gitignore | ||
| apple-touch-icon.png | ||
| catcrafts-head.js | ||
| favicon.ico | ||
| favicon.svg | ||
| LICENSE | ||
| project.cpp | ||
| README.md | ||
| robots.txt | ||
catcrafts.net
This is the source code for catcrafts.net, a website built entirely in C++ using the Crafter.Graphics library.
./tools/dev.sh
This will compile the project and serve it locally on http:://localhost:8080.
This project is source available for educational and viewing purposes only. No permission is granted to copy, modify, distribute, or create derivative works.