Commit graph

2646 commits

Author SHA1 Message Date
Chris Stewart
6193af7709 Remove WalletSync.sync() -> WalletSync.syncFullBlocks() (#2522) 2021-01-15 17:05:11 -06:00
benthecarman
36b3a1bd81 Use mainnet for default server (#2453)
* Use mainnet for default server

* Fix server tests
2021-01-14 14:07:35 -06:00
Chris Stewart
5de12311a8 Touch up bitcoind docs (#2514) 2021-01-14 14:02:12 -06:00
benthecarman
d69c60b8b2 Bitcoind v0.21.0 support (#2414)
* Bitcoind v0.21.0rc3 support

* Use v0.21.0 instead of Experimental in node tests

* Bump to rc5

* Use official release

* Fix rebase issues

* Remove DoNotDiscover tag

* Fix count for NeutrinoNodeTest
2021-01-14 14:01:44 -06:00
Scala Steward
6426158a1c Update sbt-native-image to 0.3.0 (#2511) 2021-01-13 12:59:53 -06:00
Chris Stewart
54cd05a7f2 Add new sbt-native-image plugin that helps generate a correct native … (#2494)
* Add new sbt-native-image plugin that helps generate a correct native image for the cli

* Initialize everything at build time to try and get cli working again

* Get server working with native image build

* Add '--no-fallback' which will report failures if we fail to build a standalone image

* Revert server project, file issue 2506 to indicate problems with server build

* Add native cli publishing using github actions

* Preprend 'app/' to paths

* Enable http,https protocols on cli

* Remove old graalvm plugin settings related to sbt native packager
2021-01-13 09:41:00 -06:00
Chris Stewart
2048cc0bbb Make ChainApi.processHeaders() return a failed future in the case we … (#2436)
* Rename NodeUnitTest.confg -> NodeUnitTest.getFreshConfig()

* Rename CachedBitcoinSAppConfig.config -> CachedBitcoinSAppConfig.cachedConfig

* Make CachedChainAppConfig extend CachedBitcoinSAppConfig

* Make ChainApi.processHeaders() return a failed future in the case we have no valid headers

* Run scalafmt

* Fix test case to check if promise is completed yet

* WIP: Get something working that isn't network specific

Start putting things back in place

Add comment

Revert logback file

Remove BitcoinSLogger object

* Fix unused import

* Get rid of annoying diff

* Fix spacing nit
2021-01-12 06:11:19 -06:00
Chris Stewart
a210c1ec3b 2021 01 09 issue 2496 (#2500)
* WIP: Get something working that isn't network specific

Start putting things back in place

Add comment

Revert logback file

Remove BitcoinSLogger object

* fix unit test

* Network specific log location

Co-authored-by: benthecarman <benthecarman@live.com>
2021-01-11 16:48:49 -06:00
Chris Stewart
51e9796b39 2021 01 11 issue 2493 (#2503)
* Rename NodeUnitTest.confg -> NodeUnitTest.getFreshConfig()

* Rename CachedBitcoinSAppConfig.config -> CachedBitcoinSAppConfig.cachedConfig

* Make CachedChainAppConfig extend CachedBitcoinSAppConfig

* use cached configs in both wallet/chain project as well taking ben's suggestion to fix those
2021-01-11 16:45:10 -06:00
Scala Steward
53df543f6f Update scalafx to 15.0.1-R21 (#2492)
* Update scalafx to 15.0.1-R21

* Update scalafx to 15.0.1-R21
2021-01-11 09:17:11 -06:00
benthecarman
03e36d5fa2 Recover errors in DataMessageHandler (#2460) 2021-01-10 12:17:51 -06:00
Chris Stewart
68af9760b3 Clean up fixture shutdown code a bit to try and see if this resolves … (#2498)
* Clean up fixture shutdown code a bit to try and see if this resolves issue on CI

* Rework fixtures so we aren't starting app configs in multiple places

* Fix scaladoc
2021-01-09 17:07:26 -06:00
Chris Stewart
bcfc0d51a8 Commit add Opt/T fromBytes/fromHex methods similar to StringFactory (#2499) 2021-01-09 13:04:07 -06:00
Scala Steward
44054e7f9a Update javafx-base, javafx-controls, ... to 16-ea+6 (#2489) 2021-01-09 11:24:15 -06:00
benthecarman
84cde975d8 Add createmultisig cli command (#2495) 2021-01-09 09:54:34 -06:00
Chris Stewart
98ace6f14e 2021 01 02 issue 2457 (#2461)
* WIP

* Get neutrino node with wallet 'receive information about received payments' working again

* Fix compile

* Remove initial sync logic from test case

* Remove sync logic in NeutrinoNodeWithWallet test cases

* Improve logging and rename a few things

* WIP2

* WIP3

* Get NeutrinoNodeWithWallet tests working

* Implement WalletSync, which allows you to sync a wallet from a arbitrary data source

* Get all tests passing again

* Use spv.appConfig in DataMessageHandlerTest rather than caching the config

* Modify cleanup to hopefully get CI passing

* Fix postgres tests by cleaning the table during the destroy phase of the test fixture. This is needed because the same postgres database is shared between tests in the same test suite

* Revert logback-test.xml

* Get sqlite/postgres tests passing pt 2

* syncHeight -> syncDescriptorOpt()

* Add case for genesis block hash in WalletSync

* Fix SpvNodeWithWallet test case to actually test spv functionality

* Remove nodeCallbacks parameters, callbacks should be registered on nodeAppConfig
2021-01-09 09:33:37 -06:00
Chris Stewart
72ee201c1f Make allFactories lazy so we don't hit NPE exceptions (#2491) 2021-01-08 14:35:55 -06:00
Chris Stewart
6eff248f3d Add officially supported version of bitcoind by eclair, also add the ability to specify which version of bitcoind you are using for EclairRpcTestUtil.getBitcoindRpc (#2490) 2021-01-08 11:43:48 -06:00
Chris Stewart
b4a1d31f5c Add explicit signing version associated with a EventDescriptor (#2487) 2021-01-07 11:31:00 -06:00
benthecarman
6b441631f3 Limit bech32 addresses to segwitv0 (#2471)
* Limit bech32 addresses to segwitv0

* extend ScriptFactory, make check exhuastive
2021-01-07 08:13:31 -06:00
benthecarman
f2f41bfb58 Bump size of data for AesCryptTest (#2483) 2021-01-07 07:55:29 -06:00
Chris Stewart
dc73cb26ff Rename wallet.getSyncHeight() -> wallet.getSyncDescriptorOpt(). We don't just use height in the descriptor, the hash is just as valuable for connecting to chains (#2479) 2021-01-07 07:40:30 -06:00
benthecarman
2e68cd4232 Add download link to navbar & downloads page (#2473)
* Add download link to navbar

* Downloads page
2021-01-07 07:08:26 -06:00
Nadav Kohen
680ed4b58a Modified rounding on DLCPayoutCurve interpolation to match spec (#2470) 2021-01-07 06:42:01 -06:00
benthecarman
46c73970ff Remove callbacks param from DataMessageHandler & PeerMessageReceiver (#2476) 2021-01-06 13:23:47 -06:00
benthecarman
85c4356e97 Rename v0.4 version to 0.4.0 in docs (#2478) 2021-01-06 10:48:16 -06:00
Scala Steward
d5408baf85 Update play-json to 2.9.2 (#2468) 2021-01-06 10:20:59 -06:00
benthecarman
f3612526c9 Update LICENSE year (#2474) 2021-01-06 06:41:18 -06:00
benthecarman
be06fb13ab Update DLC Oracle Signing Algo (#2465) 2021-01-05 08:19:53 -06:00
benthecarman
b436f6cd2f Version Number in logs & Cli Command (#2467) 2021-01-05 07:27:40 -06:00
Chris Stewart
1355b42240 Remove -Xfatal-warnings flag for tests (#2469) 2021-01-05 05:57:56 -06:00
benthecarman
4fb1c4f954 Make KeyManager return better error messages (#2464)
* Make KeyManager return better error messages

* Increase test coverage

* Refactor

* Create type for raw strings
2021-01-04 12:43:55 -06:00
benthecarman
3199145ec6 Simplify DBConfig Test to fix failures (#2459) 2021-01-04 07:12:38 -06:00
benthecarman
ab55f5163f Request filters after processing (#2463) 2021-01-04 06:37:48 -06:00
benthecarman
012533c2db Fix docs sidebar (#2466) 2021-01-04 06:13:46 -06:00
Chris Stewart
4e1a6c69f0 2020 12 18 enable lint options (#2454)
* Enable -Xlint:adapted-args,nullary-unit on our for compile scope

* Add Xlint:infer-any compiler option

* Fix build so test compiler options are actually enabled

* Enable more scalac linting options

* Add '-Xlint:eta-sam'

* Add 'Xlint:inaccessible,Xlint:missing-interpolator'
2021-01-03 08:01:26 -06:00
Chris Stewart
5411c89f22 Remove extra logback files (#2456)
* Remove extra logback files

* Adjust logging levels in testkit/logback-test.xml
2021-01-03 07:25:45 -06:00
Chris Stewart
b2560c4606 Rework BlockHeaderDAO.chainTips into two methods: BlockHeaderDAO.{get… (#2443)
* Rework BlockHeaderDAO.chainTips into two methods: BlockHeaderDAO.{getBestChainTips,getForkedChainTips}. getForkedChainTips is needed for reorg situations in the case a block header is received that builds off a stale tip

* Deduplicate BlockHeaderDAO.getBlockchains() that are subchains for the best chains
2021-01-01 09:04:29 -06:00
benthecarman
4a41bacaa0 Use written txDbs in TransactionProcessing (#2449) 2020-12-31 07:39:24 -06:00
benthecarman
67a205da60 Safely delete files in DBConfigTest (#2451) 2020-12-30 18:08:03 -06:00
Nadav Kohen
c112aa5101 Update secp branch with synced java files (#2448) 2020-12-30 17:34:27 -06:00
rorp
dd656cb06b Add attestation verification utility (#2438) 2020-12-30 13:56:10 -08:00
benthecarman
10ae6db088 Don't allow negative outcome for unsigned digit decomp events (#2446) 2020-12-30 07:30:27 -06:00
benthecarman
214dba8a8f Move RPC server logic into separate project (#2440) 2020-12-29 14:57:11 -06:00
benthecarman
b44aedacca KeyManager Docs (#2426)
* KeyManager Docs

* Add to sidebar

* Respond to review
2020-12-29 14:39:41 -06:00
benthecarman
145023cb3d Add doc about no mempool (#2429) 2020-12-29 14:37:25 -06:00
benthecarman
76cdcb50f9 Fix broken links in docs (#2439) 2020-12-29 14:34:37 -06:00
Nadav Kohen
20af4a3cda OutcomePayoutPoint now has the correct types and deffers rounding due to extra_precision in serialized points (#2441) 2020-12-29 13:55:39 -06:00
benthecarman
346e211eb9 Skip CI tests for docs PRs (#2435)
* Skip CI tests for docs PRs

* Fix docs
2020-12-29 08:07:15 -06:00
Scala Steward
bff0fedcd8 Update sbt to 1.4.6 (#2434) 2020-12-27 07:23:59 -06:00