Commit graph

3576 commits

Author SHA1 Message Date
Roy Lee
ca6243fbd0 [lbry] align port settings between lbcd, lbcctl, and lbcwallet 2021-12-14 14:01:09 -08:00
Brannon King
68369ba937 [lbry] ffldb: increase open file limit and flush more often 2021-12-14 14:01:09 -08:00
Brannon King
b9d6044694 [lbry] increase open file limit to 2048 2021-12-14 14:01:09 -08:00
Brannon King
4e63bef33b [lbry] docs: update docs for LBRY
Co-authored-by: Roy Lee <roylee17@gmail.com>
2021-12-14 14:01:09 -08:00
Brannon King
a09c895f49 [lbry] test: don't remove old regression DB 2021-12-14 14:00:59 -08:00
Brannon King
f73b79ae04 [lbry] test: fixed all current tests and delete three.
Co-authored-by: Roy Lee <roylee17@gmail.com>
2021-12-14 14:00:59 -08:00
Brannon King
ed5dd41a2a [lbry] upnp: brought in upnp fix from dcrd 2021-12-14 14:00:59 -08:00
Brannon King
0c8cf5dea0 [lbry] upnp: switched upnp param to its opposite 2021-12-14 14:00:59 -08:00
Brannon King
41472404c6 [lbry] enable segwit 2021-12-14 14:00:59 -08:00
Brannon King
30f4bd6582 [lbry] rpc: added optional address type for getnewaddress 2021-12-14 14:00:59 -08:00
Brannon King
c035acb6b2 [lbry] rpc: ladded claim related fields for wallet 2021-12-14 14:00:59 -08:00
Alex Grintsvayg
c87ce56241 [lbry] rpc: make uptime rpc return a real uptime 2021-12-14 14:00:59 -08:00
Brannon King
276a6141c7 [lbry] rpc: made estimatesmartfee call estimatefee (for now) 2021-12-14 14:00:59 -08:00
Roy Lee
96846fef20 [lbry] rpc, mining: fix generatetoaddress 2021-12-14 14:00:59 -08:00
Brannon King
9ae7b95c85 [lbry] rpc, mining: calculate claimtrie root hash for generate RPC 2021-12-14 14:00:59 -08:00
Brannon King
3fde64cd63 [lbry] rpc: added getchaintips RPC
remove btcjson dep in chainquery
2021-12-14 14:00:59 -08:00
Brannon King
a76bc2b828 [lbry] rpc: import invalidate/reconsiderblock from bchd 2021-12-14 14:00:59 -08:00
Brannon King
4b47722136 [lbry] rpc: import getnetworkinfo from bchd 2021-12-14 14:00:59 -08:00
Brannon King
8f3de76e19 [lbry] rpc: fix getblock reponse 2021-12-14 14:00:59 -08:00
Brannon King
9f88501d07 [lbry] rpc: update defaultMaxFeeRate from 0.1 LBC to 0.5 LBC 2021-12-14 14:00:59 -08:00
Brannon King
207fadab42 [lbry] rpc: output segwit rule 2021-12-14 14:00:59 -08:00
Brannon King
8205e467af [lbry] rpc: add ClaimTrie root hash to GetBlockTemplate() 2021-12-14 14:00:59 -08:00
Brannon King
7f3d51f8c3 [lbry] rpc: support claim related methods 2021-12-14 14:00:59 -08:00
Brannon King
470a71fbe1 [lbry] print out memory usage periodically 2021-12-14 14:00:59 -08:00
Roy Lee
753f413c13 [lbry] claimtrie: import current snapshot
Sync to tip

Co-authored-by: Brannon King <countprimes@gmail.com>
2021-12-14 14:00:59 -08:00
Roy Lee
28a5e6fc65 [lbry] rename btcd to lbcd
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-12-14 14:00:59 -08:00
Roy Lee
dadad3859a [lbry] blockchain: connect to ClaimTrie
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-12-14 14:00:59 -08:00
Brannon King
3f0ec0f28a [lbry] log: support claimtrie entries 2021-12-14 13:31:27 -08:00
Brannon King
62f2be3284 [lbry] txscript: remove claim prefix for addr calculation 2021-12-14 13:31:27 -08:00
Roy Lee
2765ac7215 [lbry] txscript: recognize LBRY claim script OPCODES 2021-12-14 13:31:27 -08:00
Roy Lee
6d80d906a8 [lbry] txscript: introduce claim script
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-12-14 13:31:27 -08:00
Roy Lee
185cb711b5 [lbry] txscript: change MaxScriptSize from 10,000 to 20,005 2021-12-14 13:31:27 -08:00
Brannon King
dfc7a4423c [lbry] server: don't ban peers on tx-not-in-block behavior 2021-12-14 13:31:24 -08:00
Roy Lee
57bca30a00 [lbry] server: update client version to /btcwire:0.5.0/LBRY.GO:0.12.2/
TODO: double check if lbryd bumps the version.
2021-12-04 22:50:29 -08:00
Brannon King
4ecd4385f5 [lbry] blockchain: Consider a block with timestamp less 6 hours 'current' 2021-12-04 22:50:29 -08:00
Brannon King
f8a5df1b87 [lbry] blockchain: support force active fork deployment 2021-12-04 22:50:29 -08:00
Roy Lee
a7b3ed5c29 [lbry] blockchain, mempool: validate txscripts
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-12-04 22:50:29 -08:00
Roy Lee
25c026e060 [lbry] blockchain: change Block Subsidy algorithm 2021-12-04 22:41:00 -08:00
Roy Lee
8591f960e2 [lbry] blockchain: change the difficulty adjustment algorithm.
adjusted := target + (actual - target) / 8

  max := target + (target / 2)
  min := target - (target / 8)

  if adjusted > max {
    adjusted = max
  } else if adj < min {
    adjusted = min
  }

  diffculty := lastDifficulty * adjusted / target
2021-12-04 22:41:00 -08:00
Roy Lee
c8abd8fe93 [lbry] blockchain: make UTXO in Genesis block spendable 2021-12-04 22:41:00 -08:00
Roy Lee
53553df4a8 [lbry] blockchain, txscript: change maxScriptElementSize from 520 t0 20,000 bytes 2021-12-04 22:41:00 -08:00
Roy Lee
b179b1d52d [lbry] blockchain, wire: verify blockheaders using LBRY PoW 2021-12-04 22:41:00 -08:00
Roy Lee
ace9c12860 [lbry] blockchain: change max block size to 2,000,000 2021-12-04 22:41:00 -08:00
Roy Lee
8420857491 [lbry] blockchain, wire: add ClaimTrie to Block Header 2021-12-04 22:41:00 -08:00
Roy Lee
261f9be12e [lbry] chaincfg: update chainparams for LBRY chain
Co-authored-by: Brannon King <countprimes@gmail.com>
Co-authored-by: Alex Grintsvayg <grin@lbry.com>
2021-12-04 22:41:00 -08:00
Roy Lee
a821057784 [lbry] chaincfg: setup genisis blocks 2021-12-04 22:41:00 -08:00
Roy Lee
d7bfc9c077 [lbry] chaincfg: implement LBRY PoW Hash 2021-12-04 22:41:00 -08:00
Brannon King
a5050cf2de [lbry] profile: support fgprof (flame graph) 2021-12-04 22:41:00 -08:00
Roy Lee
40606d22fd [lbry] wire: update protocol NetIDs 2021-12-04 22:41:00 -08:00
Brannon King
264075b311 [lbry] wire: optimize binaryFreeList handling 2021-12-04 22:41:00 -08:00