I mine solo, and my guesser rewards go to several addresses derived from one seed: generation #1, #2, … plus a few other key types, not only the default address. With the same seed at the same height (63,171), I got two different balances:
| Balance | |
|---|---|
| neptune-core node wallet | 16,812.14 NPT |
| Neptune Wallet app v4.4.0 (“100% synced”) | 9,343.9999 NPT |
I matched every unspent coin on the node to the block it came from. The app’s total is exactly what it should show if it ignores guesser rewards to non-default addresses:
- 1,024 older coins
- + 7,680 composer rewards (announced outputs: the app finds these)
- + 640 guesser rewards paid to generation key #0
- = 9,344, which matches the app’s balance.
The missing 7,468.14 NPT is exactly the guesser rewards from the 115 blocks whose guesser address was one of my other addresses.
Why it happens
A block gives you money in two different ways:
- Announced outputs (normal payments, composer reward). These carry an encrypted announcement. The app tries every known key, plus 25 future keys, to find them. This part works for any address.
- The guesser reward. It has no announcement. The block header only records who guessed the block, and the wallet has to compare that with its own keys.
For (2), par_scan_for_incoming_utxo (src-tauri/src/wallet/mod.rs, lines 551–579 in v4.4.0 and current main) compares the header with one key only:
let own_guesser_key = self.key.guesser_fee_key(); // = generation key #0
...
let was_guessed_by_us = block.kernel.header
.was_guessed_by(&own_guesser_address.into());
If the block was guessed by generation #3 of the same seed, this check returns false and the reward is skipped. A Resync runs the same code, so it does not help. Raising the look-ahead does not help either.
neptune-core’s own wallet checks the guesser reward against all known keys, so the node is right and the app is wrong.
