7 Commits

Author SHA1 Message Date
763aeb648f add fee-aware mining, coinbase validation, and reorg-safe orphan handling
Mining: blocks now include mempool txs, select spendable txs by fee, and pay coinbase as base reward + fees in main.c.
 - Consensus: block validation now enforces coinbase accounting and rejects invalid coinbase placement, including coinbase on amount2, in block.c and transaction.c.
 - Chain state: rollback now rebuilds currentSupply/currentReward, and block addition preflights spendability before mutating balances in chain.c.
 - Orphans/reorgs: orphan retry is safer, rollback-triggered sync reattaches orphans immediately, and transient orphan failures no longer drop blocks in orphan_pool.c and main.c.
 - Networking/mempool: node lifecycle now initializes the mempool, broadcasts can exclude one peer, and mempool snapshotting supports mining selection in net_node.c and txmempool.c.
 - Ledger simulation: added non-mutating spendable-transaction selection for block assembly in balance_sheet.c.
2026-05-29 13:44:15 +02:00
32b9a57366 tx mempool start, hello packet 2026-04-24 17:14:40 +02:00
accdeebee8 'balance all' command 2026-04-23 22:10:14 +02:00
e55a0b54d0 fix some warnings 2026-04-10 18:36:16 +02:00
6800ce2b60 test send 2026-04-02 21:52:59 +02:00
df7787ed2d balance sheet stuff, added khash hashmaps 2026-04-02 21:21:12 +02:00
57bfe61c13 Copied TCP impl from other project, basic Block implementation, randomx pow, signing via secp256k1 2026-03-29 17:18:23 +02:00