0

I want to create blocks with multiple transactions in regtest mode.

I want to test propagation with blocks of size 1-2 MB on the dash network.

./dash-cli -regtest -daemon -debug -port=8330 -rpcport=8331 generate 101

creates all blocks of size 181 and with 1 transaction.

What command-line argument should I use to change that.

I have tried ./dash-cli -regtest -daemon -debug -port=8330 -rpcport=8331 getnewaddress and then

./dash-cli -regtest -daemon -debug -port=8330 -rpcport=8331 sendtoaddress addr .001

to transfer amounts, so that new transactions are created. Even then the block size remains same.

Any help?

Should I be creating transactions in another way in order for it to be in mempool and in blocks.

  • Your best bet would be to start a regtest daemon, broadcast a few thousand transactions, and then start another daemon that mines – Raghav Sood Jul 27 '18 at 23:31
  • Can you help me with how to broadcast new transactions? Is it using getnewaddress and send to address only? – nakulchawla09 Jul 27 '18 at 23:40
  • Yes, that should work fine. – Raghav Sood Jul 27 '18 at 23:40
  • When I use sendtoaddress to another node, and do getmempoolinfo on the second address, the mempool size shows as zero. Is there a way to broadcast transactions in regtest mode. – nakulchawla09 Aug 6 '18 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.