Commit 3a4d0a4
committed
Fix merged mining stuck height: force aux work refresh after block submit
After submitting a merged block (submitblock or submitauxblock), the
poll_loop skipped createauxblock refresh because the daemon's best tip
hadn't changed yet (race with p2pool's submission at same height).
Result: c2pool kept mining against the same stale template, submitting
duplicate blocks at the same height repeatedly (all orphaned).
Fix: clear chain.last_tip after every block submission to force
refresh_aux_work() to call createauxblock on next poll cycle.1 parent f888b94 commit 3a4d0a4
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| 787 | + | |
| 788 | + | |
787 | 789 | | |
788 | 790 | | |
789 | 791 | | |
| |||
827 | 829 | | |
828 | 830 | | |
829 | 831 | | |
| 832 | + | |
| 833 | + | |
830 | 834 | | |
831 | 835 | | |
832 | 836 | | |
| |||
0 commit comments