12 Commits

Author SHA1 Message Date
da50b4e8c1 Start IPv6 - Lord help me 2026-06-03 11:20:19 +02:00
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
f9c94876d9 reorg bugs 2026-05-15 19:30:58 +02:00
55ca03f4ff orphan test 2026-05-15 18:49:49 +02:00
ce27dafaba todo update, forward block broadcasts, optional echo connect 2026-05-15 18:37:50 +02:00
a89a912898 quality-of-life improvements, lower client slave thread stack to 512KB (maybe still too much), dynamic fullverify - freeing transactions after verification 2026-04-23 21:34:12 +02:00
9c99eec3a8 TCP Node boilerplate; CLI interface 2026-04-23 16:24:26 +02:00
d631eb190d Start doing TCP networking 2026-04-15 21:38:30 +02:00
075793c24c huge chain test, added 1.5% yearly inflation at 3.5 million blocks 2026-03-30 23:46:22 +02:00
b47ff30bc7 difficulty calculation, move from randomx to autolykos2 2026-03-30 15:42:28 +02:00
c358115af4 stuff 2026-03-30 09:06:17 +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