Commit 5dea6b0
committed
fix(mm_proxy): update reserved_offset after inserting merge mining tag
The merge mining proxy inserts a merge mining tag at the beginning of
the Monero coinbase transaction's extra field, which shifts all
subsequent data by 35 bytes. However, the `reserved_offset` field in
the response was not being updated to reflect this shift.
This caused mining pools to have to calculate the correct nonce position
themselves instead of using the provided `reserved_offset` value.
This fix adjusts `reserved_offset` by adding the merge mining tag size
(35 bytes) after modifying the block template.1 parent abdc3cb commit 5dea6b0
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
425 | 430 | | |
426 | 431 | | |
427 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
428 | 439 | | |
429 | 440 | | |
430 | 441 | | |
| |||
0 commit comments