Fixed things after rebase
Fix adaptor dlc compile issue (#2188)
No more Maps in ContractInfo (#2215)
Co-authored-by: Ben Carman <benthecarman@live.com>
Remove Unneeded Escaped param for DLC Cli (#2213)
Fixed backward stack usage in dlc things (#2218)
Made test for DLCMessage Json serialization symmetry (#2225)
2020 10 31 Fix indeterminism with pairing dlc funding puts with funding transactions (#2227)
* WIP
* Fix indeterminism with matching DLCFundingInputDb with their funding transactions
* Remove unused imports
* Replace all other instances of .zip() in DLCWallet
Properly track DLC transactions in wallet (#2201)
* Properly track DLC transactions in wallet
* Small cleanups
DLCStatus Table in GUI (#2203)
* DLC Table View & Inspect DLC
* Move to new file, clean up asInstanceOfs
* Update DLCs on View
* Rebase fixes
Generalize dlc builders (#2206)
Co-authored-by: nkohen <nadavk25@gmail.com>
Co-authored-by: Ben Carman <benthecarman@live.com>
DLC Wallet & GUI touch ups (#2305)
* DLC Wallet & GUI touch ups
* Rename back to DLCStatus
* Only create dummy oracle on test networks
* Bring up Oracle TLVs
* Use announcement instead of oracle info
* Fix names, compile issue, assert we can safely delete sigs
* Fix TLV parsing for non-standard strings
* Fix RoutesSpec
Give raw tx, tx data, and link to broadcast for txs (#2340)
* Give raw tx, tx data, and link to broadcast for txs
* Change format
Add extra info and links for closing a DLC (#2362)
Fixed bug in DLCTxSigner.signCET where too many s values were being used (#2412)
* Moved dlc data structures from commons to core
* Renamed DLC payout curve classes
* Split OutcomeValuePoint up into an ADT
* Added utility for computing Schnorr multiple-signature points
* Replaced tuples in RoundingIntervals with types
* Replaced tuples in DLCPayoutCurve with Indexed
* Fixed a compile bug
* Multi Wallet support
* Fix Oracle tests
* Fix some CI errors
* Increase KeyManagerAppConfig code coverage
* Add test for multiple seeds in seed folder
* Move things in reference.conf files
* Lower key manager coverage requirement
* Fix postgres test issues
* Create DbAppConfig
* Add some docs, fix hardcoded postgres db name
* Clarify db vs schema
* Add character types
* Fix chaindb in conf
* Always copy default seed
* Remove need for driverName config
* 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
* 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
* 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
* Add Wallet State Descriptors
* Sync blocks while offline w/ bitcoind backend
* Add to WalletDbManagement
* Update db management test
* Respond to review
* Rename function
* 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
* 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
* 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
* 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
* 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>
* Optimize getBestFilter functions
* Remove debug statement
* Change varbinary to varchar, create index
* Fix getBlockchainFrom for tests
* Create index for postgres
* Fixed logging so that appenders are always started when logging is happening
* Started rolling policy so that file appenders could start in getLoggerImpl