Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to find mined uncle block reward? #169

Open
MoneroOcean opened this issue Apr 6, 2019 · 6 comments
Open

Where to find mined uncle block reward? #169

MoneroOcean opened this issue Apr 6, 2019 · 6 comments

Comments

@MoneroOcean
Copy link

MoneroOcean commented Apr 6, 2019

Some Masari blocks that we mine do not have any including reward transactions in the wallet. I assume it is because they are uncle. However it is just assumption and I can not be sure from block dump. How I can be sure we actually mined this block?

For example for block a0d497c8b882541e98bfa281735aba46f0e0df1b310381b8677f1bf6e44440c that our pool found (I think since pool node reported this hash) I see that there are two miner_tx outputs (while block is "uncle_status: false"):

curl -X POST http://127.0.0.1:38081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getblock","params":{"hash":"a0d497c8b882541e98bfa281735aba46f0e0df1b310381b8677f1bf6e44440c"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "blob": "08089693d4e405b635305740fde980885826d23ed135162b9a8135069268a32a5b7b91cfa1d3e12903a01f01def91a01ffa2f91a02d3ebbc92ee7602f81945f4159fcf1b70cf052a13e2a89d4150ca0a1b4342a3beeab4c580cacee687f3afb8d7f9010267112414d304c2ec8209637f25f1226117a44bc064816148fb853793acbaae0755013cbbf443b0a97d40591262b30d79050a8bcc958398c1b72d70f6b3cf5f6f60fe01440000000d8b30040030cd3ca48bf2044b09311d8cc987f48ff413e7ee6f953d021100000000000000000000000000000000000001221cca1725211577cfb3a37a9b2c21176357406ac7cfeb5afcab332d2c35dd4238e1727db5a9f2eb8cd26f840e6698be53898ec9f23aefe75be3589622f89969",
    "block_header": {
      "block_size": 3338,
      "depth": 20514,
      "difficulty": 378607792,
      "hash": "a0d497c8b882541e98bfa281735aba46f0e0d8f1b310381b8677f1bf6e44440c",
      "height": 441506,
      "major_version": 8,
      "minor_version": 8,
      "nonce": 530580265,
      "num_txes": 1,
      "orphan_status": false,
      "prev_hash": "b635305740fde980885826d23ed135162b9a8135069268a32a5b7b91cfa1d3e1",
      "reward": 12663062736730,
      "timestamp": 1553271190,
      "uncle_status": false,
      "weight": 746940157
    },
    "json": "{\n  \"major_version\": 8, \n  \"minor_version\": 8, \n  \"timestamp\": 1553271190, \n  \"prev_id\": \"b635305740fde980885826d23ed135162b9a8135069268a32a5b7b91cfa1d3e1\", \n  \"nonce\": 530580265, \n  \"miner_tx\": {\n    \"version\": 1, \n    \"unlock_time\": 441566, \n    \"vin\": [ {\n        \"gen\": {\n          \"height\": 441506\n        }\n      }\n    ], \n    \"vout\": [ {\n        \"amount\": 4084015773139, \n        \"target\": {\n          \"key\": \"f81945f4159fcf1b70cf052a13e2a89d4150ca0a1b4342a3beeab4c580cacee6\"\n        }\n      }, {\n        \"amount\": 8579046963591, \n        \"target\": {\n          \"key\": \"67112414d304c2ec8209637f25f1226117a44bc064816148fb853793acbaae07\"\n        }\n      }\n    ], \n    \"extra\": [ 1, 60, 187, 244, 67, 176, 169, 125, 64, 89, 18, 98, 179, 13, 121, 5, 10, 139, 204, 149, 131, 152, 193, 183, 45, 112, 246, 179, 207, 95, 111, 96, 254, 1, 68, 0, 0, 0, 13, 139, 48, 4, 0, 48, 205, 60, 164, 139, 242, 4, 75, 9, 49, 29, 140, 201, 135, 244, 143, 244, 19, 231, 238, 111, 149, 61, 2, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0\n    ], \n    \"rct_signatures\": {\n      \"type\": 0\n    }\n  }, \n  \"tx_hashes\": [ \"221cca1725211577cfb3a37a9b2c21176357406ac7cfeb5afcab332d2c35dd42\"\n  ], \n  \"uncle\": \"38e1727db5a9f2eb8cd26f840e6698be53898ec9f23aefe75be3589622f89969\"\n}",
    "miner_tx_hash": "6894eed067a79d11b9292340a237193bb81c94e78639d04531e3c4116c8fed99",
    "status": "OK",
    "tx_hashes": ["221cca1725211577cfb3a37a9b2c21176357406ac7cfeb5afcab332d2c35dd42"],
    "untrusted": false
  }
}

However nothing comes into mining wallet at height 441506:

[wallet 5hnMXU]: show_transfers 441400 441600
  441455     in       2019-03-22       8.175943847866 0e6ca7de876f419ad1e45ab3a1ea752cc9430e426457f00858c34c9576cff72d 0000000000000000 0 -
  441458    out       2019-03-22       7.975943847866 1640aa217e9c664c8dd65768647196327c626d58bce2c7728f79af4b1a8a4ef1 0000000000000000 0.000980220000  0 -
  441503     in       2019-03-22       8.168054915248 9415c77148851bd4d7bccc424b3030a4eae624f0fa2d38ebd35c34ad114c47bc 0000000000000000 0 -
  441505     in       2019-03-22       8.168039335927 cb5c7ad53bdb78798906d624da81a1319f807d4926c4e5f264eca6697b8244c3 0000000000000000 0 -
  441507    out       2019-03-22       7.968054915248 765a3075483ded6bffc6a66949d8b02818ae229480bed4471116942a05d43ab4 0000000000000000 0.000980190000  0 -
  441509    out       2019-03-22       7.968039335927 e6efff112059694177dd1a5ae4bfd9143df7653190eae4faec92f83f48775a70 0000000000000000 0.000980190000  0 -
  441554     in       2019-03-22       8.167657651846 099fce45b24a27f07ca87c565912064a1f71839f693b9c2a558a1bc633139467 0000000000000000 0 -
  441556    out       2019-03-22       7.967657651846 d10376085b74b6a87ba087cdd3c257ead07b912a72e3d9d24897c036ef5e5172 0000000000000000 0.000980130000  0 -

Moreover I do not see any incoming transfers in wallet that are less than 8 MSR (that correspond to reduced uncle block rewards), but I have some extra money somehow in it.

@thaerkh
Copy link
Contributor

thaerkh commented Apr 17, 2019

Hi there,

I don't see any uncles mined in 441507 which indicate to me that either somebody didn't mine your orphan block or the uncle wasn't valid enough (i.e. within T/2 of the accepted height block). This would indicate that your orphan block wasn't accepted into the network as an uncle.

Hope that helps!

@MoneroOcean
Copy link
Author

MoneroOcean commented Jun 6, 2019

Have other related questions here as well:

  1. what is typical uncle block reward? Is it half of the normal block reward?
  2. Can I expect to see uncle block rewards as incoming transfers (show_transfers) in my wallet CLI?

Thank you!

@MoneroOcean
Copy link
Author

Also this situation happens regularly: nodes are able to report block hashes as found, but there are no incoming transactions in wallet:

4|remoteShare  | 2019-06-06 22:33:27:936 +00:00: 38081: block hash: 5a3468f6f2a21aa4f2e9c4a97c0a145c20da7a45da0ca0c0c8832eaddcec3e25: txid dcf62c1ffaaa599c71a6c090e1c4fe0dfe4c7c082bffa20a8fe5a24d8243a0cb: {"error":{"code":-8,"message":"Transaction not found."},"id":"0","jsonrpc":"2.0"}
4|remoteShare  | 2019-06-06 22:33:33:693 +00:00: 38081: block hash: 101a8888727dcf6804f10ee73ad22f2616a9683c18c0c985be543e4f462e2184: txid f0cc3749c5b67f3ad590610071fc337e339a473363aa79e11dbcda8fadc8c9e5: {"error":{"code":-8,"message":"Transaction not found."},"id":"0","jsonrpc":"2.0"}
4|remoteShare  | 2019-06-06 22:33:36:594 +00:00: 38081: block hash: 303940578ec0b7bf5a0d6e4ca1ecef8556d3c0e611bdcd85c1031839287ff885: txid 7e4fe5d99964f366cbc1ceabd62136d649e2f94b335220be2512c87724fc54c3: {"error":{"code":-8,"message":"Transaction not found."},"id":"0","jsonrpc":"2.0"}
4|remoteShare  | 2019-06-06 22:33:39:495 +00:00: 38081: block hash: 16f33f761115ca1ea5e818c4bcfb01a11d3c2323ed7c39b7295a1c2a66bd8f2c: txid f3cc8d8f5b621fd2431bcc08852a05237d41082ab52363e6e14b9723e38342f1: {"error":{"code":-8,"message":"Transaction not found."},"id":"0","jsonrpc":"2.0"}
4|remoteShare  | 2019-06-06 22:33:42:387 +00:00: 38081: block hash: 9c40f7b5af5b382189db0f590f312dab56f53af9815b2757683ddd23d6606ab6: txid e23248942bc689a6e290e2fe56accd215e7ff2afc14ccd95d661bd6729e1472d: {"error":{"code":-8,"message":"Transaction not found."},"id":"0","jsonrpc":"2.0"}

Since all of these block hashes can be identified by external Masari block explorers I believe it is our pool blocks, so why there is no corresponding incoming block reward remains unclear.

@cryptochangements34
Copy link
Contributor

What pool software are you using?

@MoneroOcean
Copy link
Author

@cryptochangements34
Copy link
Contributor

To answer your previous questions

  1. The reward for mining an uncle block (a would-be-orphan) is 50% of the block base reward. The reward for mining a nephew block (the block that references an uncle block) is 105% of the base reward
  2. yes you should see them there

Have you tried checking if you own the outputs in the block here: https://msrchain.net/search?value=6894eed067a79d11b9292340a237193bb81c94e78639d04531e3c4116c8fed99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants