Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: amaclin on July 19, 2015, 05:56:43 PM



Title: Download only blocks, not unconfirmed txs
Post by: amaclin on July 19, 2015, 05:56:43 PM
Is it possible to synchronize local blockchain (blk***.dat files) downloading only blocks from peer(s) but ignore all incoming inv/tx messages?

May be we need a command-line parameter in Bitcoin Core to do it?


Title: Re: Download only blocks, not unconfirmed txs
Post by: achow101 on July 19, 2015, 06:02:19 PM
You could use the
Code:
-minrelaytxfee=<amt>
flag and set <amt> to something ridiculously high so that it will reject and not relay all transactions. It will still keep the blocks but the mempool should be empty. It may also not relay any of your transactions though.


Title: Re: Download only blocks, not unconfirmed txs
Post by: amaclin on July 19, 2015, 06:09:45 PM
You could use the
Code:
-minrelaytxfee=<amt>
flag and set <amt> to something ridiculously high so that it will reject and not relay all transactions. It will still keep the blocks but the mempool should be empty. It may also not relay any of your transactions though.

 :o
I do not want to download and parse them.
I want my Bitcoin Core to ignore messages "inv" with tag "transaction"

PS. I do not relay any transactions because of parameter -maxconnections=1


Title: Re: Download only blocks, not unconfirmed txs
Post by: achow101 on July 19, 2015, 06:20:02 PM
You could use the
Code:
-minrelaytxfee=<amt>
flag and set <amt> to something ridiculously high so that it will reject and not relay all transactions. It will still keep the blocks but the mempool should be empty. It may also not relay any of your transactions though.

 :o
I do not want to download and parse them.
I want my Bitcoin Core to ignore messages "inv" with tag "transaction"

PS. I do not relay any transactions because of parameter -maxconnections=1
I don't think that is possible without modifying the code. I can do that for a fee if you want.