1200wd / bitcoinlib

Bitcoin and other Cryptocurrencies Library for Python. Includes a fully functional wallet, Mnemonic key generation and management and connection with various service providers to receive and send blockchain and transaction information.
http://bitcoinlib.readthedocs.io/
GNU General Public License v3.0
615 stars 204 forks source link

Document bcoin default max-txs 100 limitation #284

Open reqlez opened 1 year ago

reqlez commented 1 year ago

There is an UN-documented setting in bcoin config file called: max-txs

I spent a bit trying to figure out why code works with blocksmurfer but not bcoin, and found this to be the case.

I would probably document this in the bcoin example, as others might run into the same issue.

If you do not supply max-txs ( https://github.com/bcoin-org/bcoin/blob/master/lib/node/fullnode.js#L121 ) in bcoin config, the default value is 100 ( https://github.com/bcoin-org/bcoin/blob/master/lib/indexer/addrindexer.js#L122 ), and could be too low in some scenarios. I realize, this is more up-stream's job to document, but maybe it will help somebody ;-)