Bitcoin Forum
May 10, 2024, 06:21:41 AM *
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?
1715322101
Hero Member
*
Offline Offline

Posts: 1715322101

View Profile Personal Message (Offline)

Ignore
1715322101
Reply with quote  #2

1715322101
Report to moderator
1715322101
Hero Member
*
Offline Offline

Posts: 1715322101

View Profile Personal Message (Offline)

Ignore
1715322101
Reply with quote  #2

1715322101
Report to moderator
1715322101
Hero Member
*
Offline Offline

Posts: 1715322101

View Profile Personal Message (Offline)

Ignore
1715322101
Reply with quote  #2

1715322101
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715322101
Hero Member
*
Offline Offline

Posts: 1715322101

View Profile Personal Message (Offline)

Ignore
1715322101
Reply with quote  #2

1715322101
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


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: 3388
Merit: 6631


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!