Commit graph

3547 commits

Author SHA1 Message Date
Roy Lee 43d3086ce1 [lbry] mempool: update getrawmempool and implement getmempoolentry
TODO::
1. Populate Ancestor and decsendent related fields instead of mocking.
2. Move and refator the implementation of getmempoolentry to the mempool
   package.
2022-05-24 00:04:19 -07:00
Roy Lee 7513046f70 [lbry] fees: replace estimatefee with esimatesmartfee 2022-05-24 00:04:19 -07:00
Roy Lee d126d0c10e [lbry] fees: port estimatesmartfee from DCRD
1. logger
2. blockheight: int64 -> int32
3. dcrutil -> lbcutl
4. MaxConfirimation: 42
5. MinBucketFee: mempool.MinRelayFee (default 1000)
6. BucketFee Spacing: 1.1 -> 1.05

Note:
  DCRD implementation of estimatesmartfee is based on bitcoin core 0.14
  Lbrycrd (0.17) includes the updates of bitcoin core 0.15.
  They are slightly different, but shouldn't matter much.
2022-05-24 00:04:19 -07:00
Roy Lee 324c443c64 [lbry] fees: initial import from DCRD
vendored https://github.com/decred/dcrd/tree/master/internal/fees

Commit of the last modification

    commit a6e205b88fbb44f7ee85be25a81f4dad155670d8
    Author: Dave Collins <davec@conformal.com>
    Date:   Sat Dec 26 12:17:48 2020 -0600

        fees: Remove deprecated DisableLog.
2022-05-24 00:04:19 -07:00
Roy Lee d99883a620 [lbry] btcjson: take integers for boolean parameters.
This is for backward compatibility with lbrycrd/bitcoind where some clients
use intger values (0/1) for boolean.
2022-05-24 00:04:19 -07:00
Roy Lee a7f971f404 [lbry] rpc: update getrawtransaction to take verbose as boolean 2022-05-24 00:04:19 -07:00
Jeffrey Picard 239d681f28 [lbry] contrib: add linode deployment using docker 2022-05-24 00:04:19 -07:00
Roy Lee d35a82412f [lbry] align port settings between lbcd, lbcctl, and lbcwallet 2022-05-24 00:01:46 -07:00
Brannon King 2bd6e4c3a9 [lbry] ffldb: increase open file limit and flush more often 2022-05-24 00:01:46 -07:00
Brannon King b4623ef2dd [lbry] increase open file limit to 2048 2022-05-24 00:01:46 -07:00
Brannon King 4dd4505706 [lbry] docs: update docs for LBRY
Co-authored-by: Roy Lee <roylee17@gmail.com>
2022-05-24 00:01:46 -07:00
Brannon King 1b823c055f [lbry] test: don't remove old regression DB 2022-05-24 00:01:46 -07:00
Brannon King a07bb527df [lbry] test: fixed all current tests and delete three.
Co-authored-by: Roy Lee <roylee17@gmail.com>
2022-05-24 00:01:46 -07:00
Brannon King d6a6b53551 [lbry] upnp: brought in upnp fix from dcrd 2022-05-24 00:01:46 -07:00
Jonathan Moody fe1637c223 [lbry] config: Verify completeness of sample-lbcd.conf using reflection on config struct. 2022-05-24 00:01:46 -07:00
Jonathan Moody 6c2a3d8bcf [lbry] config: Embed sample-lbcd.conf contents at build time.
Use embedded config if the sample-lbcd.conf is not found at runtime.
2022-05-24 00:01:46 -07:00
Jonathan Moody 2add30af9a [lbry] config: Add a number of missing options to sample-lbcd.conf.
Correct "blacklist is applied before the blacklist" typo in help text.
2022-05-24 00:01:46 -07:00
Roy Lee b8b2bd1584 [lbry] config: enable txindex by default 2022-05-24 00:01:46 -07:00
Brannon King f3e1c96de9 [lbry] config: enable upnp by default 2022-05-24 00:01:46 -07:00
Brannon King 0a0e79bc41 [lbry] enable segwit 2022-05-24 00:01:45 -07:00
Brannon King 023aa5d6b0 [lbry] btcjson: added optional address type for getnewaddress 2022-05-24 00:01:45 -07:00
Brannon King de2a548207 [lbry] btcjson: ladded claim related fields for wallet 2022-05-24 00:01:45 -07:00
Roy Lee 568544961f [lbry] rpcserver: log the reason of submitblock rejection 2022-05-24 00:01:45 -07:00
Brannon King 8c984993a8 [lbry] rpcserver: made invalidate/reconsiderBlock return RPC errors 2022-05-24 00:01:45 -07:00
Brannon King 6c0360fa42 [lbry] rpcserver: made estimatesmartfee call estimatefee (for now) 2022-05-24 00:01:45 -07:00
Roy Lee d20a2e53b4 [lbry] mining: return witness_script instead of raw witness_commitment in GBT 2022-05-24 00:01:45 -07:00
Roy Lee 29f64f9dcf [lbry] mining: enlarge updateHash channel buffers 2022-05-24 00:01:45 -07:00
Brannon King e0870db24e [lbry] mining: calculate claimtrie root hash for generate RPC 2022-05-24 00:01:45 -07:00
Brannon King 6784830246 [lbry] blockchain: clear statusValid upon statusValidateFailed is set
The status management of index does need some refactoring.
For now, we just manually clear the statusValid in every occurance
of statusValidateFailed being set.

Co-authored-by: Roy Lee <roylee17@gmail.com>
2022-05-24 00:01:45 -07:00
Brannon King 405897fa38 [lbry] blockchain: fix crash on unlock generate/invalidate loop 2022-05-24 00:01:45 -07:00
Roy Lee 64884458f9 [lbry] rpc, mining: fix generatetoaddress 2022-05-24 00:01:45 -07:00
Alex Grintsvayg 5537ebbf0c [lbry] rpc: add GetChainTips rpc command 2022-05-24 00:01:45 -07:00
Brannon King 1ea849d509 [lbry] rpc: added getchaintips RPC
remove btcjson dep in chainquery
2022-05-24 00:01:45 -07:00
Brannon King 73d8f4762f [lbry] rpc: import invalidate/reconsiderblock from bchd 2022-05-24 00:01:45 -07:00
Brannon King 81862c664e [lbry] rpc: import getnetworkinfo from bchd 2022-05-24 00:01:45 -07:00
Brannon King 5116f45617 [lbry] rpc: fix getblock reponse 2022-05-24 00:01:45 -07:00
Brannon King 3d8f36a505 [lbry] rpc: output segwit rule 2022-05-24 00:01:45 -07:00
Roy Lee 096dd3ff75 [lbry] rpcclient: fix http response resource leaking 2022-05-24 00:01:02 -07:00
Roy Lee fb3ef35189 [lbry] rpcclient: support SkipVerify of TLS certificate. (#39) 2022-05-23 23:53:30 -07:00
Roy Lee 3111601ac9 [lbry] rpcclient: add a blocknotify example using lbcd websocket 2022-05-23 23:53:30 -07:00
Brannon King e7d8637cc5 [lbry] rpcclient: update defaultMaxFeeRate from 0.1 LBC to 0.5 LBC 2022-05-23 23:53:30 -07:00
Brannon King 9d70ff6f6d [lbry] rpcserver: add ClaimTrie root hash to GetBlockTemplate() 2022-05-23 23:53:30 -07:00
Brannon King 6834591d52 [lbry] rpc: support claim related methods 2022-05-23 23:53:30 -07:00
Brannon King 0c5f94420a [lbry] print out memory usage periodically 2022-05-23 23:53:30 -07:00
Roy Lee 6828cf5e36 [lbry] claimtrie: import current snapshot
Sync to tip

Co-authored-by: Brannon King <countprimes@gmail.com>
2022-05-23 23:53:30 -07:00
Roy Lee 45627c7a6a [lbry] rename btcd to lbcd
Co-authored-by: Brannon King <countprimes@gmail.com>
2022-05-23 23:53:30 -07:00
Roy Lee aae5b24bb0 [lbry] blockchain: connect to ClaimTrie
Co-authored-by: Brannon King <countprimes@gmail.com>
2022-05-23 23:53:30 -07:00
Brannon King ba22414cc1 [lbry] log: support claimtrie entries 2022-05-23 23:53:30 -07:00
Brannon King 78d780263b [lbry] txscript: remove claim prefix for addr calculation 2022-05-23 23:53:30 -07:00
Roy Lee 61a18152e9 [lbry] txscript: recognize LBRY claim script OPCODES 2022-05-23 23:53:30 -07:00