Skip to content

v2.1.2 - getblocktemplate

Compare
Choose a tag to compare
@nlevo nlevo released this 19 Feb 16:49
69aa516

*This update is important for MINERS. If you are not planning to mine ANON, you can skip this update.

The purpose of this update is to help miners prepare their mining software before the activation of ANON development fund fee (approx. block 41,000) and ANON Superblocks (block 43,800).

1. RPC getblocktemplate (extended)

  • This RPC call now returns an additional field coinbase_required_outputs.
    These outputs are divided into 3 categories:

    • Masternode reward (always one).
    • Development fund reward (always one).
    • Superblock payment(s) (1 or multiple).
      Note: Superblocks are special blocks that pay out funded budget proposals approved by masternode votes via the decentralized governance system. Superblocks are issued monthly and have a coinbase that can be much larger than normal. The superblock value is provided by the 5% of block rewards set aside for superblock payouts.
  • coinbase_required_outputs is an Array of Objects. "coinbase_required_outputs": [ {}, {}, {} ]

    • amount (in satoshis).
    • script (hex).
    • type - provides info about the output. Can be one of these: masternode, development or superblock.

Example:

./anon-cli -testnet getblocktemplate

{
  ....
      "coinbase_required_outputs": [
    {
      "amount": 475000000,
      "script": "76a914580208d2b3c2e840e96bc13b8479f0574348b28e88ac",
      "type": "development"
    },
    {
      "script": "76a9147448450976439d48536cb0b503b508fd8defb54388ac",
      "amount": 1662500000,
      "type": "masternode"
    },
    {
      "script": "76a91449e43b71de382f2daf6eae01a6805039de7549f388ac",
      "amount": 2500000000,
      "type": "superblock"
    }
  ],
  .....
}
  • If you are using mining software (like S-nomp) that works with node-stratum-pool, then you just need to update node-stratum-pool package (npm update) and that should be it.

PR - s-nomp/node-stratum-pool#35

  • If you are using other mining software you may have to manually adjust it to work with coinbase_required_outputs. You can use the above PR as an example.