{"id":381,"date":"2020-09-29T22:08:37","date_gmt":"2020-09-29T22:08:37","guid":{"rendered":"http:\/\/bitcoinsv-io.bitproton.com\/?post_type=miner_document&p=381"},"modified":"2020-09-30T12:19:48","modified_gmt":"2020-09-30T11:19:48","slug":"settings","status":"publish","type":"miner_document","link":"https:\/\/bitcoinsv.io\/documentation\/miners\/settings\/","title":{"rendered":"Settings"},"content":{"rendered":"\n

The Genesis upgrade removes the default setting for the maximum block size and defines this as a \u201cmandatory consensus parameter\u201d. The upgrade also defines a new setting, the maximum script memory usage mandatory consensus parameter. The values for these parameters must be manually configured in the software by the system administrator. This page provides information on these parameters and recommendations on how to choose the required values.<\/p>\n\n\n\n

The recommended method of choosing these parameters is to survey the major Bitcoin SV Miners and choose the same, or larger. It is expected that Miners will begin to publish these settings in their MinerID coinbase documents in the near future. However, in the meantime we will regularly update this page with known settings of various Miners manually.<\/p>\n\n\n\n

We urge you to take note of the\u00a0minimum recommended system requirements<\/a>\u00a0for running an instance of Bitcoin SV.<\/p>\n\n\n\n

Maximum block size<\/strong><\/h2>\n\n\n\n

This mandatory consensus parameter defines the maximum size, in bytes, of a block. The software will not retrieve or validate any blocks larger than the value of this parameter.<\/p>\n\n\n\n

This parameter can be configured using the configuration option \u201cexcessiveblocksize\u201d with the value denominated in bytes. This option can be specified on the command line or in the configuration file.<\/p>\n\n\n\n

This parameter can also be configured while the software is running using the \u201cbitcoin-cli setexcessiveblock\u201d command (this feature was added in version 1.0.0 of the software). It is important to note that the value of this setting is not persisted when it is set using the \u201cbitcoin-cli\u201d command. If the software is restarted the value of the parameter will revert to the value set in the configuration file or defined on the command line.<\/p>\n\n\n\n

Please note that excessiveblocksize is the maximum size block a Miner will accept.  The maximum size block a Miner will attempt to produce is governed by a different setting \u201cblockmaxsize\u201d which is usually set to a lower value than excessiveblocksize.<\/p>\n\n\n\n

Maximum stack memory usage<\/strong><\/h2>\n\n\n\n

This mandatory consensus parameter defines the maximum amount of stack memory that a single script can use during evaluation. If a script attempts to use more than this amount of memory during evaluation, then the evaluation will be terminated, and the script will fail. A script failure will cause a transaction to be deemed invalid and if that transaction is contained in a block, the block will also be deemed invalid.<\/p>\n\n\n\n

This parameter can be configured using the configuration option \u201cmaxstackmemoryusageconsensus\u201d with the value denominated in bytes. This option can be specified on the command line or in the configuration file.<\/p>\n\n\n\n

Method to choose mandatory consensus parameter values<\/strong><\/h2>\n\n\n\n

The capacity of the Bitcoin SV network is determined by the Miners that confirm blocks. Miners will analyse the state of the blockchain, the capability of the software, and other factors and determine values for the mandatory consensus parameters. Miners will publish the values that have been chosen.<\/p>\n\n\n\n

The recommended method for determining the values of the mandatory consensus parameters is to survey the values that have been published by miners, taking account of the capabilities of the Miner. If you are mining, use similar values.  If you are not mining, use higher values.<\/p>\n\n\n\n

Note that Miners may change the values that they use so a regular review of the settings is recommended.<\/p>\n\n\n\n

Miner nodes Vs Blockchain listeners<\/strong><\/h2>\n\n\n\n

We define a node as an instance of Bitcoin SV that build blocks for the purpose of mining.  A Blockchain listener is an instance of Bitcoin SV that is not involved in the mining process.<\/p>\n\n\n\n

For a listener, we recommend choosing settings at least twice as high as that of the miners.  This is in order to give you bandwidth so that when Miners increase their settings in the future, you are unlikely to be forked from the network by having a setting lower than theirs.<\/p>\n\n\n\n

If the value is set too low<\/strong><\/h2>\n\n\n\n

If your setting is lower than the majority of Miners and a block is mined that exceeds your settings, then your Bitcoin SV instance will reject that block and all future blocks mined on top of it, effectively forking off the network. However, if you are not mining, it is likely that your fork will not be extended, and your instance will simply cease following the longest chain. In this case, the remedy is simply to increase the values of those settings and restart your Bitcoin SV instance.  It will then accept the failed blocks and catch up to the rest of the network.<\/p>\n\n\n\n

Choosing the \u2018unlimited\u2019 option<\/strong><\/h2>\n\n\n\n

It is possible to set either of these parameters to effectively unlimited, by choosing a value of \u201c0\u201d.  If this option is chosen, there is no risk of forking off the network. However, in the event of an extremely large block being mined it is possible your node could run out of memory and crash.  If you have followed best practices and allocated a large swap file and have minimum recommended memory, this is only likely, in an attack scenario. If this happens the remedy is to set your limits similarly to the majority of Miners and restart the node.<\/p>\n\n\n\n

Mandatory Settings<\/strong><\/h2>\n\n\n\n

Based on the current known Miners settings, the following would be deemed safe:<\/p>\n\n\n\n

Safe values<\/th>Maximum block size<\/th>Maximum script memory usage<\/th><\/tr><\/thead>
Miner<\/td>excessiveblocksize=1000000000<\/td>maxstackmemoryusageconsensus=100000000<\/td><\/tr>
Listener<\/td>excessiveblocksize=2000000000<\/td>maxstackmemoryusageconsensus=200000000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n
Currently known values<\/th>Maximum block size<\/th>Maximum script memory usage<\/th><\/tr><\/thead>
CoinGeek<\/td>excessiveblocksize=1000000000<\/td>maxstackmemoryusageconsensus=100000000<\/td><\/tr>
Mempool<\/td>excessiveblocksize=1000000000<\/td>maxstackmemoryusageconsensus=100000000<\/td><\/tr>
SVPool<\/td>excessiveblocksize=1000000000<\/td>maxstackmemoryusageconsensus=100000000<\/td><\/tr>
Taal<\/td>excessiveblocksize=1000000000<\/td>maxstackmemoryusageconsensus=100000000<\/td><\/tr>
NourPool<\/td>excessiveblocksize=1000000000<\/td>maxstackmemoryusageconsensus=100000000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Optional settings<\/h2>\n\n\n\n

With the increasing adoption of Bitcoin SV the transaction volume continues to rise. With the explosive use of data transactions (op_returns), it is possible your Bitcoin SV node will not be able to handle the volume of traffic reaching your mempool or be inundated with computationally heavy requests.  As a result, the node will drop transactions to allow higher fee-paying ones in, increasing computation at a later point, or worse, cease to function.<\/p>\n\n\n\n

A solution is, to increase these following values from their defaults is to allow the node to remain efficient under high load situations.<\/p>\n\n\n\n

Default values<\/th>Mempool size allowance<\/th>Signature and script cache<\/th>Maxorphantx<\/th><\/tr><\/thead>
PreGenesis<\/td>maxmempool=300<\/td>maxsigcachesize=TBC maxscriptcachesize=TBC<\/td>maxorphantx=TBC<\/td><\/tr>
PostGenesis<\/td>maxmempool=8000<\/td>maxsigcachesize=TBC maxscriptcachesize=TBC<\/td>maxorphantx=TBC<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"parent":0,"menu_order":0,"template":"","meta":[],"tags":[],"minerdoc_category":[6],"lang":"en","translations":{"zh":4545,"en":381},"yoast_head":"\nSettings - Bitcoin SV<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bitcoinsv.io\/documentation\/miners\/settings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Settings - Bitcoin SV\" \/>\n<meta property=\"og:description\" content=\"The Genesis upgrade removes the default setting for the maximum block size and defines this as a \u201cmandatory consensus parameter\u201d. The upgrade also defines a new setting, the maximum script memory usage mandatory consensus parameter. The values for these parameters must be manually configured in the software by the system administrator. This page provides information […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bitcoinsv.io\/documentation\/miners\/settings\/\" \/>\n<meta property=\"og:site_name\" content=\"Bitcoin SV\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-30T11:19:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bitcoinsv.io\/wp-content\/uploads\/2020\/09\/bitcoin-sv-bsv-mines-world-record-128mb-blocks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1234\" \/>\n\t<meta property=\"og:image:height\" content=\"616\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BitcoinSVNode\" \/>\n<meta name=\"twitter:site\" content=\"@BitcoinSVNode\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/bitcoinsv.io\/#organization\",\"name\":\"Bitcoin SV\",\"url\":\"https:\/\/bitcoinsv.io\/\",\"sameAs\":[\"https:\/\/twitter.com\/BitcoinSVNode\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bitcoinsv.io\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bitcoinsv.io\/wp-content\/uploads\/2020\/10\/bsv-logo-wh-medium.png\",\"width\":800,\"height\":144,\"caption\":\"Bitcoin SV\"},\"image\":{\"@id\":\"https:\/\/bitcoinsv.io\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bitcoinsv.io\/#website\",\"url\":\"https:\/\/bitcoinsv.io\/\",\"name\":\"Bitcoin SV\",\"description\":\"Just another WordPress site\",\"publisher\":{\"@id\":\"https:\/\/bitcoinsv.io\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/bitcoinsv.io\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bitcoinsv.io\/documentation\/miners\/settings\/#webpage\",\"url\":\"https:\/\/bitcoinsv.io\/documentation\/miners\/settings\/\",\"name\":\"Settings - Bitcoin SV\",\"isPartOf\":{\"@id\":\"https:\/\/bitcoinsv.io\/#website\"},\"datePublished\":\"2020-09-29T22:08:37+00:00\",\"dateModified\":\"2020-09-30T11:19:48+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bitcoinsv.io\/documentation\/miners\/settings\/\"]}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/miner_document\/381"}],"collection":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/miner_document"}],"about":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/types\/miner_document"}],"version-history":[{"count":2,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/miner_document\/381\/revisions"}],"predecessor-version":[{"id":4584,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/miner_document\/381\/revisions\/4584"}],"wp:attachment":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/tags?post=381"},{"taxonomy":"minerdoc_category","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/minerdoc_category?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}