Commit 1e287dd
committed
fix: restore on-chain wallet lookup for emission TX accruals
Use storage.load_node_registration() in all 3 emission TX creation paths
instead of reward_manager.get_node_wallet_address() which was unreliable.
RocksDB node_registry is populated from on-chain NodeRegistration TXs
(genesis block for genesis nodes, registration TX for light/super nodes)
and is the correct source of truth for node_id -> wallet mapping.
Made-with: Cursor1 parent 9dd7e37 commit 1e287dd
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2724 | 2724 | | |
2725 | 2725 | | |
2726 | 2726 | | |
| 2727 | + | |
| 2728 | + | |
2727 | 2729 | | |
2728 | 2730 | | |
2729 | 2731 | | |
| |||
4402 | 4404 | | |
4403 | 4405 | | |
4404 | 4406 | | |
| 4407 | + | |
4405 | 4408 | | |
4406 | 4409 | | |
4407 | 4410 | | |
| |||
14371 | 14374 | | |
14372 | 14375 | | |
14373 | 14376 | | |
14374 | | - | |
| 14377 | + | |
14375 | 14378 | | |
14376 | 14379 | | |
14377 | 14380 | | |
| |||
0 commit comments