Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: readyrocky on January 24, 2017, 06:48:31 PM



Title: Configure Core not to download blocks or relay tx automatically
Post by: readyrocky on January 24, 2017, 06:48:31 PM
More basically: how can I broadcast a tx without having to bear with the burden of a full node and without relying to public APIs?

Can this be achieved with Core and some confs like -prune:<N> ?


Title: Re: Configure Core not to download blocks or relay tx automatically
Post by: unholycactus on January 24, 2017, 07:08:24 PM
You can't use Bitcoin Core properly if it isn't synced i.e. you've downloaded all the blocks at least once.
Pruning can be used but you still need to be downloading the new blocks, less space is required if that's what you're looking for.


Title: Re: Configure Core not to download blocks or relay tx automatically
Post by: achow101 on January 24, 2017, 07:20:46 PM
You cannot have Core function properly without downloading all of the blocks. You can enable pruning so that it does not take up as much space, but it will still need to download and verify all of the blocks before discarding them. This will still take up a lot of bandwidth though.

You can run Bitcoin Core in blocksonly mode (with the -blocksonly option) where it will not download, verify, or relay any unconfirmed transactions. It will still need to download confirmed transactions as those are part of blocks.


Title: Re: Configure Core not to download blocks or relay tx automatically
Post by: gmaxwell on January 25, 2017, 06:33:41 AM
https://github.com/laanwj/bitcoin-submittx


Title: Re: Configure Core not to download blocks or relay tx automatically
Post by: readyrocky on January 26, 2017, 09:51:29 AM
https://github.com/laanwj/bitcoin-submittx

Thanks a lot!