Bitcoin Forum
May 21, 2024, 06:31:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Download only blocks, not unconfirmed txs  (Read 602 times)
amaclin (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
July 19, 2015, 05:56:43 PM
 #1

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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6642


Just writing some code


View Profile WWW
July 19, 2015, 06:02:19 PM
 #2

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.

amaclin (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
July 19, 2015, 06:09:45 PM
 #3

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.

 Shocked
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
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6642


Just writing some code


View Profile WWW
July 19, 2015, 06:20:02 PM
 #4

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.

 Shocked
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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!