what parameter can adjust dig time / block

+1 vote

 

I'm using the bitcoin protocol for multichain, When connecting the second server to the first server requires copying the params.dat file from the first server. That could cause the first server to be attacked if it exposes Information such as Genesis-pubkey Genesis-version Genesis-timestamp Genesis-nbits = Genesis-nonce = Genesis-pubkey-hash = Genesis-op-return-script = Genesis-hash = [null] Chain-params-hash = [null] These parameters have nothing to do with whether other people can take over the rights of the first server, thank you And what parameter can adjust dig time / block (eg bitcoin 10 minutes, litecoin 2.5 minutes ..) I'm not good at english so please help

 

asked Jun 29, 2017 by tyemday

1 Answer

0 votes

You're looking for the target-block-time parameter - a full list is here:

http://www.multichain.com/developers/blockchain-parameters/

answered Jun 30, 2017 by MultiChain
i set target-block-time = 86400 (1 days ) but , 5 minutes , i use getinfo , blocks is 47 ?
Please post the output of getblockchainparams and listblocks 0-XX where XX is the highest block number in getinfo.
This getblockchainparams

"chain-protocol" : "bitcoin",
    "chain-description" : "A non-profit organization in Asia",
    "root-stream-name" : "root",
    "root-stream-open" : true,
    "chain-is-testnet" : false,
    "target-block-time" : 60,
    "maximum-block-size" : 1000000000,
    "default-network-port" : 6835,
    "default-rpc-port" : 6834,
    "anyone-can-connect" : true,
    "anyone-can-send" : true,
    "anyone-can-receive" : true,
    "anyone-can-receive-empty" : true,
    "anyone-can-create" : false,
    "anyone-can-issue" : false,
    "anyone-can-mine" : true,
    "anyone-can-activate" : false,
    "anyone-can-admin" : true,
    "support-miner-precheck" : true,
    "allow-p2sh-outputs" : true,
    "allow-multisig-outputs" : true,
    "setup-first-blocks" : 60,
    "mining-diversity" : 0.30000000,
    "admin-consensus-upgrade" : 0.50000000,
    "admin-consensus-admin" : 0.50000000,
    "admin-consensus-activate" : 0.50000000,
    "admin-consensus-mine" : 0.50000000,
    "admin-consensus-create" : 0.00000000,
    "admin-consensus-issue" : 0.00000000,
    "lock-admin-mine-rounds" : 10,
    "mining-requires-peers" : false,
    "mine-empty-rounds" : 10.00000000,
    "mining-turnover" : 1.00000000,
    "first-block-reward" : 100000000,
    "initial-block-reward" : 100000000,
    "reward-halving-interval" : 43200,
    "reward-spendable-delay" : 1,
    "minimum-per-output" : -1,
    "maximum-per-output" : 900000000000000,
    "minimum-relay-fee" : 1000,
    "native-currency-multiple" : 100000000,
    "skip-pow-check" : false,
    "pow-minimum-bits" : 20,
    "target-adjust-freq" : 1209600,
    "allow-min-difficulty-blocks" : true,
    "only-accept-std-txs" : true,
    "max-std-tx-size" : 4194304,
    "max-std-op-returns-count" : 10,
    "max-std-op-return-size" : 2097152,
    "max-std-op-drops-count" : 5,
    "max-std-element-size" : 8192,
    "chain-name" : "tesst",
    "protocol-version" : 10008,
    "network-message-start" : "fad1cdfd",
    "address-pubkeyhash-version" : "008cff4a",
    "address-scripthash-version" : "05d86330",
    "private-key-version" : "80d53a18",
    "address-checksum-value" : "be5f4149",
    "genesis-pubkey" : "02166455b436d199a5fe869d833cecaa5acb57937b323b26aba975a5f9665e5c5d",
    "genesis-version" : 1,
    "genesis-timestamp" : 1499139217,
    "genesis-nbits" : 504365055,
    "genesis-nonce" : 54097,
    "genesis-pubkey-hash" : "8aa69f524e116ef2421262000db7e2330b83d17b",
    "genesis-hash" : "00000b4a38d62c2ec7c637c383ed440779591a4169527f9308aa3f3863d1c4db",
    "chain-params-hash" : "a4c38ee348e03a3b490dded3d1de79fc925743d7b0213dbda1e54872164083b6"


This listblocks :

   {
        "hash" : "00000b4a38d62c2ec7c637c383ed440779591a4169527f9308aa3f3863d1c4db",
        "miner" : null,
        "confirmations" : 133,
        "height" : 0,
        "time" : 1499139217,
        "txcount" : 1
    },
    {
        "hash" : "00000b9dbe16c049ff55616b24bf2d93258765c7e5c53d349ef6a8c99130c8eb",
        "miner" : null,
        "confirmations" : 132,
        "height" : 1,
        "time" : 1499139220,
        "txcount" : 1
    },
    {
        "hash" : "000009ac00f6136493b749fb9bd89a5d041892c52c06ecbb972056a271fa83d7",
        "miner" : null,
        "confirmations" : 131,
        "height" : 2,
        "time" : 1499139221,
        "txcount" : 1
    },
    {
        "hash" : "000009558bc7af7704b3db71b5f4f7c030f2ab7c8da115a7b1ee5f75f6c6f7e0",
        "miner" : null,
        "confirmations" : 130,
        "height" : 3,
        "time" : 1499139221,
        "txcount" : 1
    },
    {
        "hash" : "00000311611f7de41e69f13a2b7272625881d7e293f206060fef8496354bfef5",
        "miner" : null,
        "confirmations" : 129,
        "height" : 4,
        "time" : 1499139222,
        "txcount" : 1
    },
  

 . ... limit 8000 char


Thank you very much
OK, so the issue is that you are using the bitcoin protocol on your chain, which does not have permissioned mining. That means the mining rate is only determined by the difficulty which is only adjusted every (target-adjust-freq/target-block-time) blocks - in your case, every 20160 blocks.
"anyone-can-mine" : true
Is this the right to mining?

Now i want to use the bitcoin protocol, every minute just allow mine 1 block, how i must do, thank you
If it's important for you to have close control over the block time without waiting for a difficulty adjustment, you should use the multichain protocol with permissioned miners.
...