1
0
Fork 0
mirror of https://github.com/bitcoin-s/bitcoin-s.git synced 2025-03-24 07:59:10 +01:00
Commit graph

167 commits

Author SHA1 Message Date
Chris Stewart
4a1316263f
2021 01 27 conectionpool ()
* Give connection pool example config

* Get hikari logging working on postgres

* fix 2.12.x

* Bump metrics core to a supported version

* Add hikari-logging and hikari-logging-interval configuration options to turn off/on hikari and schedule how often logs appear

* Turn off hikari logging in the db-commons/reference.conf and add it to appserver/reference.conf

* default the logging to off in scala code

* Make sure connection pool is enabled in db-commons, add default database configuration to website

* Address code review, fix things that didn't need to be changed
2021-01-28 09:44:03 -06:00
benthecarman
810ca7c678
Create BlockSyncState type () 2021-01-27 14:15:07 -06:00
benthecarman
ee7c96245e
Add walletinfo rpc ()
* Add walletinfo rpc

* Move rootXpub to key manager obj

* Make configuration keys for getinfo the same as the ones in our configuration files

* Cleanup

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-01-22 13:55:21 -06:00
benthecarman
a42601ebac
Fix rpc bind address from config ()
* Fix rpc bind address from config

* Add to oracle server
2021-01-21 17:21:54 -06:00
benthecarman
a1a2524b56
Use mainnet for default server ()
* Use mainnet for default server

* Fix server tests
2021-01-14 14:07:35 -06:00
Chris Stewart
0f84e3d158
Add new sbt-native-image plugin that helps generate a correct native … ()
* 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
93dae6c239
2021 01 09 issue 2496 ()
* 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
benthecarman
94c71543fb
Add createmultisig cli command () 2021-01-09 09:54:34 -06:00
Chris Stewart
b76be736b8
Rename wallet.getSyncHeight() -> wallet.getSyncDescriptorOpt(). We don't just use height in the descriptor, the hash is just as valuable for connecting to chains () 2021-01-07 07:40:30 -06:00
Chris Stewart
b0b56dd5da
2020 12 18 enable lint options ()
* 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
benthecarman
4e862b7297
Move RPC server logic into separate project () 2020-12-29 14:57:11 -06:00
Ben Carman
847981317a
Add getblockheader cli command () 2020-12-23 07:15:35 -06:00
Ben Carman
7409bae8f9
Remove need for params in RPC request () 2020-12-22 16:08:51 -06:00
Ben Carman
f135322c09
Bump Fee Cli commands ()
* Bump Fee Cli commands

* Clarify fee rate, add to docs
2020-12-22 14:19:46 -06:00
Chris Stewart
eaecc1c377
Implement rpcbind to allow for binding to a different interface () 2020-12-22 07:25:50 -06:00
Chris Stewart
de5041ee27
Fix server configuration for the app server () 2020-12-22 06:18:39 -06:00
Ben Carman
b5d6216150
Windows Secp Update & fix for parsing Windows paths ()
* Windows Secp Update

* Add docs about errors

* Fix paths in config

* Bump timeout
2020-12-21 16:34:53 -06:00
Ben Carman
a2b54eef30
Import Seed cli commands ()
* Import Seed cli commands

* Respond to review
2020-12-21 06:53:20 -06:00
Ben Carman
2db21fc3d2
Add get transaction cli command ()
* Add get transaction cli command

* Fix return, add to docs
2020-12-18 07:18:13 -06:00
Nadav Kohen
49a281acaf
Pulled down work from adaptor-dlc onto master ()
* Pulled down work from adaptor-dlc onto master

* Reverted some accidental deletions

* Removed unused import

* Added scaladocs

* Responded to Ben's review

* Added some scaladocs and invariants

* Responded to chris' review

* Responded to more review

* Added some comments
2020-12-11 17:32:35 -06:00
Ben Carman
42c15ba672
Fix datadir config option ()
* Fix datadir config option

* Move vals

* Use better names and docs
2020-11-24 16:05:20 -06:00
Ben Carman
79b3d959d3
Create KeyManagerAppConfig ()
* Create KeyManagerAppConfig

* Fix name

* Use module name
2020-11-19 06:23:26 -06:00
Chris Stewart
2de17bb4e4
2020 11 13 issue 2258 ()
* Introduce ChainHandlerCached which behaves like the old ChainHandler. Now Chainhandler.getBestBlockHeader() will read headers from the database

* Remove ChainHandler.blockchains field, now it's only available in ChainHandlerCached

* De-futurify ChainHandler.fromDatabase()

* Adjust logging

* Patch test case

* Use BlockHeaderDAO.chainTips when getting best header rather thean BlockHeaderDAO.getBlockchains(). Implement a helper method ChainHandler.toChainHandlerCached()

* Fix chain.md,wallet.md

* Make ChainHandler.getBestBlockHeader() consider time of header if chainwork is the same. Make test cases less strict on what header is the best header when both chainwork and time are the same on the eader

* Only execute callbacks on headers that are going to be created in the database, not all headers passed into ChainHandler.processHeadersWithChains()

* Turn up log level again

* Small optimizations, check if we have seen a header before before processing it in ChainHandler.processHeadersWithChains(). Fix FilterSyncMarker.toString(). Use ChainHandlerCached in Node

* Remove ChainHandlerCached in appServer, re-add it in Node.scala
2020-11-17 06:19:07 -06:00
Ben Carman
744d8d18ab
Add ability to change aes password ()
* Add ability to change aes password

* Add docs

* Rename, add logs + tests
2020-11-15 08:07:49 -06:00
Ben Carman
cc42849864
Use New Oracle TLVs in DLCOracle ()
* Update Oracle to use new TLVs

* Rename things to use new names, scaladoc, small clean ups

* Add descomposition tests, docs, sign numbers outside of range
2020-11-10 06:08:43 -06:00
Ben Carman
ce9fbb0807
Analyze PSBT function ()
* Analyze PSBT function

* Add to tests

* Add docs

* Add more functions

* Fix compile issues

* Fix compile issue
2020-11-09 15:15:32 -06:00
Ben Carman
641b2236d6
Let wallet sign PSBTs ()
* Let wallet sign PSBTs

* Add example to docs

* Add logs and test case
2020-11-07 09:25:59 -06:00
Ben Carman
7530a13830
Add listreservedutxos cli command () 2020-11-07 09:08:33 -06:00
Ben Carman
c08379b236
Decode PSBT function ()
* Decode PSBT function

* Add test
2020-11-06 06:56:46 -06:00
Ben Carman
7b72d82440
Make BIP 39 password a config option () 2020-11-05 07:36:02 -06:00
Chris Stewart
8a148357d5
2020 11 02 cleanup ()
* Cleanup a bunch of imports in test

* Use @nowarn annotation for testing things that are deprecated

* Fix base58 test

* Cleanup crypto-test

* Use scala collection compat dependency to get access to the @nowarn annotation on scala 2.12.x

* Rework more scala 2.13.x compile failures in chain-test and key-manager-test

* Optimize imports for entire project

* Fix nits
2020-11-03 11:07:04 -06:00
Ben Carman
641538440f
Fee Provider from config ()
* Fee Provider from config

* Use block targets, add docs

* Add FeeProviderFactory
2020-11-03 09:06:18 -06:00
Ben Carman
49a58133ec
Add Wallet State Descriptors ()
* Add Wallet State Descriptors

* Sync blocks while offline w/ bitcoind backend

* Add to WalletDbManagement

* Update db management test

* Respond to review

* Rename function
2020-10-14 14:17:51 -05:00
Ben Carman
3701281995
Have api endpoints return json () 2020-10-13 10:13:57 -05:00
Ben Carman
56b385a0e7
Create fromConfig functions for AppConfigs ()
* Create fromConfig functions for AppConfigs

* Add fromClassPathConfig function
2020-10-12 14:07:45 -05:00
Ben Carman
8577bfd34d
Remove requirement for ZMQ with bitcoind backend ()
* Remove requirement for ZMQ with bitcoind backend

* Add test, move poller to BitcoindRpcBackendUtil

* Add docs & logs, fix niche case

* Use AtomicReference, reset prevCount on failure
2020-10-12 07:59:57 -05:00
Ben Carman
30b6e22662
Fix NPE and log location on server start up () 2020-10-10 00:14:04 -05:00
Chris Stewart
6b98154622
Fix npe exception on oracleServer/run () 2020-10-08 20:16:00 -05:00
Ben Carman
593f170f2a
Refactor Mains to use common BitcoinSRunner ()
* Refactor Mains to use common BitcoinSRunner

* Give better name
2020-10-08 07:17:48 -05:00
Ben Carman
6267512c4d
Make ZMQ Listeners typed () 2020-10-08 01:21:50 -05:00
Chris Stewart
475ed19df6
2020 10 05 redo config ()
* Use absolute paths for resolving configurations

Make log level OFF again

WIP: Move resolution of config into AppConfig.start(), things are totally broken

WIP: Make AppConfig.config private

Get all tests passing again but using absolute path in configuration

* Cherry-pick onto master

* Fix BitcoinSAppConfig configuration keys to use the full path

* Apply code review

* Fix log, move invariant for requiredConfirmations back into the lazy val

* Fix DlcOracleAppConfig to use absolute path
2020-10-05 18:00:30 -05:00
Chris Stewart
6ce7d3d701
Upgrade to scalac 2.13.3 () 2020-10-04 07:42:44 -05:00
Ben Carman
8048f1e80c
Add DLC Oracle Server Endpoints () 2020-10-03 15:24:02 -05:00
Ben Carman
105260249f
Bitcoind backend on server start up () 2020-10-02 10:33:24 -05:00
rorp
ffc42a1ed3
Server installation guide () 2020-10-02 10:29:49 -05:00
Ben Carman
c853151206
Create Util functions for wallets with a bitcoind backend ()
* Create Util functions for wallets with a bitcoind backend

* Move function, delete reduant function

* Fix imports
2020-09-30 08:50:49 -05:00
Ben Carman
23d0d7e0ea
Create BitcoindRpcAppConfig ()
* Create BitcoindRpcAppConfig

* Fix to lazy val

* Override stop function to not use db

* Add new config options to docs
2020-09-30 07:36:23 -05:00
rorp
dd272a8d8e
systemd script () 2020-09-29 05:59:42 -05:00
Ben Carman
856f88f0dd
Initial SigNet support () 2020-09-25 12:29:13 -05:00
Ben Carman
a91adf1dc9
Add missing settings for native packager () 2020-09-23 17:02:40 -05:00