Chris Stewart
6b2237d2e8
Fix overrides AppConfig.configOverrides with DLCOracleAppConfig, also remove hardcoded value out of AppConfig.configOverrides so people have to implement it ( #2209 )
2020-10-21 17:13:09 -05:00
Ben Carman
49a58133ec
Add Wallet State Descriptors ( #2157 )
...
* 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
Chris Stewart
ca5324c6a2
2020 10 12 issue 2164 ( #2173 )
...
* Make private lazy val representing Flyway config in DbManagement, expose DbManagement.info() method
* Add more asserts based on new DbManagement.info() method
* Add extra +1 for flyway on postgres as it seems to apply an implicit migration needed to setup flyway
2020-10-13 10:11:37 -05:00
Chris Stewart
1997f22e7d
Refactor db configuration to use the key 'user' rather than 'username' inline with slick documentation ( #2184 )
2020-10-13 10:02:02 -05:00
Ben Carman
56b385a0e7
Create fromConfig functions for AppConfigs ( #2170 )
...
* Create fromConfig functions for AppConfigs
* Add fromClassPathConfig function
2020-10-12 14:07:45 -05:00
Chris Stewart
0e41c29a3f
2020 10 08 issue 2147 ( #2153 )
...
* Add test case for resolving typesafe config variables and making sure we honor system properties
* Remove println
* Move AppConfigTest test caess into the db-commons project
2020-10-08 10:37:13 -05:00
Chris Stewart
da2f3232cd
2020 10 06 explicit classloader ( #2148 )
...
* Use explicit classloader
* Add OracleInfoTLV for easy publishing
* Get config resolution working on sb-api
* Remove OracleInfoV0TLV
2020-10-07 13:47:48 -05:00
Chris Stewart
475ed19df6
2020 10 05 redo config ( #2121 )
...
* 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
Ben Carman
8048f1e80c
Add DLC Oracle Server Endpoints ( #2105 )
2020-10-03 15:24:02 -05:00
Chris Stewart
4aec33f38c
Move configuration for sqlite into the 'bitcoin-s' key ( #2113 )
...
* Move configuration for sqlite into the 'bitcoin-s' key
Fix tests
* Re-add test database configuration key
* Make log level OFF again
2020-10-03 09:34:40 -05:00
Ben Carman
f69678d74b
Allow any HDCoinType ( #2097 )
2020-10-02 10:42:59 -05:00
Ben Carman
23d0d7e0ea
Create BitcoindRpcAppConfig ( #2077 )
...
* 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
Ben Carman
28ed8db9a5
Move DLC Oracle module to master
( #2083 )
2020-09-29 19:48:02 -05:00
Ben Carman
856f88f0dd
Initial SigNet support ( #2057 )
2020-09-25 12:29:13 -05:00
Ben Carman
ce9ebe57e2
Fix HDPurpose Mapper for non standard values ( #2054 )
2020-09-24 06:33:20 -05:00
rorp
e247113f15
Increase the default db queue size ( #2047 )
2020-09-22 11:18:42 -05:00
Ben Carman
6545c04f62
Only log db config on startup ( #2044 )
2020-09-22 07:30:26 -05:00
Ben Carman
8361ff6e08
Merge pull request #2019
...
* Refactor logging to only use grizzled slf4j
* Fix docs
* test travis config change
2020-09-19 14:09:12 -05:00
Ben Carman
f471119880
Create DatabaseDriver ADT instead of booleans ( #1902 )
2020-08-27 12:41:52 -05:00
Chris Stewart
9a1dfdfdbd
Remove AppConfig.initialize() in favor of AppConfig.start() ( #1907 )
...
* Remove AppConfig.initialize() in favor of AppConfig.start()
* Fix docs
2020-08-26 16:24:38 -05:00
rorp
1c84dc330f
Add an ability to one Postgres database for all sub-projects ( #1897 )
...
* Add an ability to one Postgres database for all sub-projects
2020-08-26 12:20:18 -07:00
Chris Stewart
a9ad927a9c
Apply string factory to a bunch of easy things ( #1891 )
...
* Apply string factory to a bunch of easy things
* Refactor HDPath, ExtKey, and LnTagPrefix to use StringFactory
* Implemen StringFactory on LnHumanReadablePart, ScriptType, ServiceIdentifier
* Implement StringFactory on AesCrypt, NodeUri, AddressTag, PSBT, TxoState
* Fix failing tests, fix website compile
* Apply StringFactory to all ScriptOperations, ChannelState, Script Parsing
2020-08-25 10:48:37 -05:00
Scala Steward
4186be51e0
Update scalafmt-core to 2.6.4 ( #1686 )
...
* Update scalafmt-core to 2.6.4
* Format everything
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-08-24 14:24:16 -05:00
Chris Stewart
f702410be5
Db conf on pr 1877 ( #1879 )
...
* Extend StartStopAsync with BitcoinSAppConfig, create 'CachedAppConfig' test trait, clean up P2PClientTest
* Start cleaning up after ourselves in the chainTest test suite
* Call .stop() for appConfig's spun up in ChainAppConfigTest
* Database configuration defaults
* increase number of Postgres connections
* add more logging
* close connections pools in tests
* update afterAll()
* Fix conflict
Co-authored-by: rorp <rorp@users.noreply.github.com>
2020-08-24 12:55:04 -05:00
Ben Carman
350928beca
Correcly use reference.conf file ( #1869 )
...
* Correcly use reference.conf file
* Fix for network specific filter header batch size config option
* Add to other conf files
2020-08-24 06:30:16 -05:00
Ben Carman
1d7793cc45
Only use appenders with no Logback conf ( #1867 )
2020-08-21 13:26:31 -05:00
Ben Carman
6e2c811789
Rolling log file location ( #1846 )
...
* Rolling log file location
* Fix file name
2020-08-18 14:37:22 -05:00
rorp
874a96eb1e
Refactor wallet DB ( #1798 )
...
* Refactor wallet DB
* fix create(), update() and upsert()
* remove accout foreign key
* fix wallet fixtures
* update Postgres schema
* update SQLite schema
* fix AddressHandlingTest
* fix SQLITE_BUSY exception in TransactionProcessing
* fix RescanHandlingTest
* revert NeutrinoNodeTest
* fix SpendingInfoDAOTest
* fix SQLITE_BUSY exceptions
* fix DbManagementTest
* fix "Task rejected" Slick exceptions in Postgres mode
* responded to the PR comments
2020-08-18 13:43:12 -05:00
Chris Stewart
86f68b3b62
Fix address tag issue where we weren't adding tags to an address, we were replacing existing tags ( #1824 )
2020-08-14 10:06:28 -05:00
Ben Carman
9dc7b2c0dd
Remove default false for useLogbackConf ( #1816 )
...
* Remove default false for useLogbackConf
* Fix docs
* Set logging level to WARN for tests
2020-08-14 08:53:07 -05:00
Ben Carman
e247289c34
Make Akka log to file correctly ( #1801 )
2020-08-12 07:52:51 -05:00
Chris Stewart
fa388c7448
Create more of a project structure in org.bitcoins.core.api, move DbR… ( #1799 )
...
* Create more of a project structure in org.bitcoins.core.api, move DbRowAutoInc into the core project
* Get website compiling again
2020-08-12 06:13:23 -05:00
Chris Stewart
d31806f76f
Add synchronous version of StartStop ( #1771 )
...
* Add synchronous version of StartStop
* Use ben's suggestion of StartStopAsync extending StartStop
2020-08-06 18:24:12 -05:00
Ben Carman
eb09319c27
Have AppConfig use BitcoinNetwork.fromString ( #1748 )
2020-08-04 07:51:56 -05:00
Chris Stewart
5e80795c77
2020 07 25 optimize recalc chainwork ( #1697 )
...
* Optimize recalc Chainwork
* Typo and warning fixes
* Rename force recalc cli option
* Always update gensis header
* Add config option
* Fix config option
* Add to example config
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-07-31 10:43:04 -05:00
Ben Carman
930f184dca
Optimize getBestFilter functions ( #1715 )
...
* Optimize getBestFilter functions
* Remove debug statement
* Change varbinary to varchar, create index
* Fix getBlockchainFrom for tests
* Create index for postgres
2020-07-30 10:47:48 -05:00
Ben Carman
26a2529f50
CRUD Test suite + updateAll improvements ( #1618 )
...
* CRUD Tests
* Remove some hard coded values
* DeleteAll test optimization
* Make deleteAll transactional
* Fix deleteAll test
2020-07-30 10:10:56 -05:00
Nadav Kohen
7b8f17ade1
Added locks on start calls for loggers ( #1713 )
2020-07-29 10:12:49 -05:00
Ben Carman
728a4a841f
Fix Node Startup Issue ( #1683 )
...
* Fix Node Startup Issue
* Small fixes
* Add option to force chain work recalc
2020-07-29 09:37:20 -05:00
Nadav Kohen
436396773d
Fix All Loggers! ( #1695 )
...
* Fixed logging so that appenders are always started when logging is happening
* Started rolling policy so that file appenders could start in getLoggerImpl
2020-07-28 07:13:38 -05:00
Chris Stewart
6a1e4aea01
Add .transactionally to CRUD.updateAll(), CRUD.upsertAll(), CRUDAutoInc.createAll() ( #1698 )
2020-07-25 16:47:04 -05:00
Ben Carman
03da22b391
Fix length of BigIntMapper ( #1651 )
...
* Fix length of BigIntMapper
* Fix for max value uint256
2020-07-09 14:44:55 -05:00
Ben Carman
c2fa7d7cc8
Address Tagging Attempt 2 ( #1320 )
...
* Address & UTXO tagging
* Fix docs
* Remove useless function, improve docs
* Fix rebase errors
* Rebase fixes
* Fix docs
* Fix small test errors
* Fix Postgres migration
* Fix postgres
2020-07-08 14:38:39 -05:00
Ben Carman
102e5775f7
AppConfig Start Interface ( #1598 )
...
* AppConfig Start Interface
* Use StartStop interface
2020-06-21 09:33:43 -05:00
Ben Carman
586075e9f8
Temporary fix for update all on CRUDAutoInc Tables ( #1596 )
...
* Temporary fix for update all on CRUDAutoInc Tables
* Add comment
2020-06-20 08:46:59 -05:00
Scala Steward
e6d1471af0
Update scalafmt-core to 2.6.0 ( #1579 )
...
* Update scalafmt-core to 2.6.0
* Upgrade scalafmt, fix all formatting errors
* Scalafmt on 2.12
* fix test
* More fixes
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-19 10:38:12 -05:00
Nadav Kohen
38a73de48f
Lots of misc. improvements from dlc branch ( #1583 )
2020-06-17 14:34:01 -05:00
Nadav Kohen
2b91c39616
Added compile scope scalafmtCheck to travis runs ( #1563 )
2020-06-16 15:16:43 -05:00
Nadav Kohen
6b1973264e
Fixed all walletTest threads not being closed ( #1552 )
2020-06-15 10:50:53 -05:00
Chris Stewart
8c0e64e101
Move slickDbConfig out of JdbcProfileComponent trait into AppConfig ( #1510 )
...
* Move slickDbConfig out of JdbcProfileComponent trait into AppConfig
* Cleanup newliens
2020-06-04 12:49:08 -05:00