Commit graph

3409 commits

Author SHA1 Message Date
Roy Lee a56581d967 [lbry] remove tests that uses internal package for now 2021-09-07 13:25:04 -07:00
eugene 3c4900275c mempool: export isDust for use in other projects
This changes isDust to IsDust so other golang projects (btcwallet
or lnd) can use the precise dust calculation used by btcd.
2021-09-07 13:25:04 -07:00
Calvin Kim 9d3279f215 rpcserverhelp: Remove extra period for gettxout--synopsis 2021-09-07 13:25:04 -07:00
Gabriel Nasr 40fe74adb8 btcjson: Update WalletCreateFundedPsbtOpts.FeeRate from *int64 to *float64 2021-09-07 13:25:04 -07:00
Brannon King ac1fdda8a0 sanitizing readmes for lbcd 2021-08-31 15:53:55 -04:00
Brannon King 79e392b85d fixing tmp folder cleanup 2021-08-30 09:09:48 -04:00
Brannon King 5588af7d5b updated main README 2021-08-27 15:46:13 -04:00
Brannon King 83b6a8dc18 include lbcctl in release 2021-08-27 13:25:53 -04:00
Brannon King 1ba1a10e59 set release version 2021-08-27 13:04:46 -04:00
Brannon King a51be72029 fix worker count 2021-08-27 13:04:37 -04:00
Brannon King 79987722bb fixed bug with block rollback; re-orgs should work now 2021-08-27 10:54:26 -04:00
Brannon King 1834d95b43 rollback on hash mismatch 2021-08-26 15:07:42 -04:00
Roy Lee 9c9bd3e3a5 [lbry] go module: update gopsutil to v3.21.7
v3.21.6 breaks in go 1.17
2021-08-23 21:24:37 -07:00
Brannon King 8a5e74ebe6 Disable UPnP on regtest and simnet 2021-08-23 12:43:16 -04:00
Roy Lee 7154e57d49 [lbry]: btcd: cleanup claim databases for regression test 2021-08-20 12:25:52 -04:00
Roy Lee bf86d03f84 [lbry] claimtrie: init blockRepo with empty merkle hash at block 0 2021-08-20 12:00:51 -04:00
Brannon King d2f8ad7657 remove symbols in release package 2021-08-19 17:57:28 -04:00
Brannon King ca18f3e8a2 fix bad rune handling
formatting
2021-08-19 17:52:01 -04:00
Brannon King 0be18205c8 updating build scripts to not use ICU 2021-08-19 17:51:47 -04:00
Brannon King 61de064575 replaced x/text/cases with our own impl. 2021-08-19 17:51:07 -04:00
Brannon King e4c637b02a issues found in code review 2021-08-19 17:50:43 -04:00
Brannon King d83eaa4fed fix unexpected AppendBlock call 2021-08-19 17:50:19 -04:00
Roy Lee c7285883a6 [lbry] mining: fix generatetoaddress 2021-08-19 16:39:53 -04:00
Brannon King fe1ce376d8 [lbry] mining: calculate claimtrie root hash for generate RPC 2021-08-19 14:41:48 -04:00
Brannon King d19bcd60db [lbry] brought in upnp fix from dcrd 2021-08-19 14:19:21 -04:00
Brannon King 7414ad7b54 [lbry] switched upnp param to its opposite 2021-08-19 14:19:21 -04:00
Brannon King c8cd97fe4d [lbry] enable segwit 2021-08-19 14:19:21 -04:00
Brannon King a06875fe46 [lbry] remove claim prefix for addr calculation 2021-08-19 14:19:21 -04:00
Brannon King 5f872b37cf [lbry] print out memory usage periodically 2021-08-19 14:19:21 -04:00
Brannon King 9af0566433 [lbry] blockchain: Consider a block with timestamp less 6 hours 'current' 2021-08-19 14:19:21 -04:00
Brannon King aa518c59bb [lbry] rpc: update defaultMaxFeeRate from 0.1 LBC to 0.5 LBC 2021-08-19 14:19:21 -04:00
Brannon King 1402e61807 [lbry] rpc: output segwit rule 2021-08-19 14:19:21 -04:00
Brannon King a061c31208 [lbry] rpc: add ClaimTrie root hash to GetBlockTemplate() 2021-08-19 14:19:21 -04:00
Brannon King 983e4c6000 [lbry] rpc: support claim related methods 2021-08-19 14:19:21 -04:00
Mark Beamer Jr a310f8b598 [lbry] rpcclient: allow any chain params not specified in repo already. 2021-08-19 14:19:21 -04:00
Roy Lee ed2c764c9d [lbry] config: support 'clmtimpl' and 'clmtheight' flags 2021-08-19 14:19:21 -04:00
Roy Lee 4b8bd4c238 [lbry] go module: update go modules
go mod init github.com/lbryio/chain
go mod edit --replace github.com/btcsuite/btcd=./
go mod edit --replace github.com/btcsuite/btcutil=github.com/lbryio/lbcutil@f93c78a8bc21
go mod tidy
2021-08-19 14:19:21 -04:00
Roy Lee 9080abc2c6 [lbry] claimtrie: import current snapshot
Sync to tip

Co-authored-by: Brannon King <countprimes@gmail.com>
2021-08-19 14:19:21 -04:00
Roy Lee 0224bf295b [lbry] blockchain: connect to ClaimTrie
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-08-19 14:19:21 -04:00
Roy Lee 8e059c14d7 [lbry] FIXME: remove the tests for now to pass CI.
Some test files failed to build as the go module "replace" doesn't work
with test and internal packages yet.

The other tests need updates to the testdata.
2021-08-19 14:19:21 -04:00
Brannon King 9d0dfbe87e [lbry] log: support claimtrie entries 2021-08-19 14:19:21 -04:00
Roy Lee 62479740ae [lbry] misc: change RPC port from 8334 to 9245 2021-08-19 14:19:20 -04:00
Roy Lee 1895c9069f [lbry] txscript: recognize LBRY claim script OPCODES 2021-08-19 14:19:20 -04:00
Roy Lee 9caab1e2e1 [lbry] txscript: initial porting of claim script
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-08-19 14:19:20 -04:00
Roy Lee 0a22e00498 [lbry] txscript: change MaxScriptSize from 10,000 to 20,005 2021-08-19 14:19:20 -04:00
Roy Lee 866b0cb610 [lbry] server: update client version to /btcwire:0.5.0/LBRY.GO:0.12.2/
TODO: double check if lbryd bumps the version.
2021-08-19 14:19:20 -04:00
Brannon King 3d9d9b1912 [lbry] blockchain: support force active fork deployment 2021-08-19 14:19:20 -04:00
Roy Lee 27b01f77b3 [lbry] blockchain, mempool: validate txscripts
Co-authored-by: Brannon King <countprimes@gmail.com>
2021-08-19 14:19:20 -04:00
Roy Lee 7d412b4e2f [lbry] blockchain: change Block Subsidy algorithm 2021-08-19 14:19:20 -04:00
Roy Lee a6189cb439 [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-08-19 14:19:20 -04:00