Commit graph

2396 commits

Author SHA1 Message Date
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
Ben Carman
0f5929d65e
Clean up calls in Node and Chain (#1896)
* Clean up calls in Node and Chain

* Remove parens on non-modifying call
2020-08-26 13:04:34 -05:00
Ben Carman
79f757311e
Send get filters message if we haven't cached any yet (#1900) 2020-08-26 12:56:19 -05:00
Chris Stewart
e345227561
docs: Remove e2e dlc info from documentation, add some notes about using gui bundled with node (#1905) 2020-08-26 12:31:08 -05:00
Chris Stewart
b9095035ba
docs: dlc branch -> adaptor-dlc branch (#1903) 2020-08-26 10:48:34 -05:00
Ben Carman
c9c18fabc5
Create ADT for NodeType instead of booleans (#1901) 2020-08-26 07:28:35 -05: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
Chris Stewart
9daa7e73af
Bump scalatestplus version (#1894) 2020-08-25 10:34:10 -05:00
Nadav Kohen
3805fc6286
docs: Updated setup and dlc docs (#1895)
Removed graalvm from cli instructions
2020-08-25 10:33:05 -05:00
Ben Carman
ef9bd4165d
Add new hash preimage PSBTInput types (#1893) 2020-08-25 10:23:21 -05:00
Scala Steward
88ae895895
Update scalatest to 3.2.2 (#1876) 2020-08-25 07:09:29 -05:00
Ben Carman
485874d215
Simplify Transaction Broadcast (#1872)
* Simplify transaction broadcast

* Assert tx in db, add note on privacy leak
2020-08-25 07:09:09 -05:00
Ben Carman
4cdbeafb58
Move ChainApi to core (#1888)
* Move Chain Db Reps to core

* Move ChainApi to Core
2020-08-25 07:08:42 -05:00
Ben Carman
66ec89bcab
Move WalletApi to Core (#1890) 2020-08-25 07:05:20 -05:00
Ben Carman
f96bb97a9e
Remove 2.11 specfic files (#1892) 2020-08-25 06:41:41 -05:00
Ben Carman
28ff3186e4
Move WalletApi necessities to core (#1886) 2020-08-24 17:26:58 -05:00
Ben Carman
098c0ee2f5
Update user agent to 0.4.0 (#1887) 2020-08-24 17:20:56 -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
Ben Carman
acbdbfac41
Move all remaining wallet db representations (#1885) 2020-08-24 13:13:52 -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
Chris Stewart
b43d5d28f8
2020 08 22 chaintest cleanup (#1877)
* Clean up code for BroadcastDAO test

* Extend StartStopAsync with BitcoinSAppConfig, create 'CachedAppConfig' test trait, clean up P2PClientTest

* Make MerkleBuffersTest use CachedAppConfig

* Start cleaning up after ourselves in the chainTest test suite

* Cancel background runnable for generating blocks after test case, add nodeAppConfig.stop() to tests in NodeAppConfigTest

* Stop mainnet nodeAppConfig in test as per ben's code review

* Refactor ChainUnitTest.withChainFixture() to use makeDependentFixture()

* Call .stop() for appConfig's spun up in ChainAppConfigTest

* Less parallelization on destruction of chainAppConfig

* Revert parallelExecution/fork jvm in CommonSettings
2020-08-24 11:20:02 -05:00
Chris Stewart
e4460bb07f
2020 08 21 clean broadcast dao (#1875)
* Clean up code for BroadcastDAO test

* Extend StartStopAsync with BitcoinSAppConfig, create 'CachedAppConfig' test trait, clean up P2PClientTest

* Make MerkleBuffersTest use CachedAppConfig

* Start cleaning up after ourselves in the chainTest test suite

* Cancel background runnable for generating blocks after test case, add nodeAppConfig.stop() to tests in NodeAppConfigTest

* Stop mainnet nodeAppConfig in test as per ben's code review
2020-08-24 11:19:41 -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
Chris Stewart
50a43d0502
Remove uncessary extension of Async 'FixtureAsyncFlatSpec' in WalletDaoFixture, it's inherited from BitcoinSWalletTest already (#1881) 2020-08-24 06:29:18 -05:00
Scala Steward
1660f560d4
Update postgresql to 42.2.16 (#1873) 2020-08-23 07:53:36 -05:00
Chris Stewart
403d70eb0b
Fix async bug with destruction of fixtures (#1878) 2020-08-23 07:44:53 -05:00
Ben Carman
f1b228a8ce
Move TransactionDb to Core (#1849)
* Move TransactionDb to Core

* Move to api package
2020-08-22 08:04:30 -05:00
Ben Carman
f757120681
Move AddressTagDb to Core (#1850)
* Move AddressTagDb to Core

* Move to wallet api package
2020-08-21 16:31:30 -05:00
Chris Stewart
199661df7b
Start calling appConfig.stop() in destruction fixture code (#1868)
* Start calling appConfig.stop() in destruction fixture code

* Address ben's code review
2020-08-21 14:54:23 -05:00
Ben Carman
02f02fb22b
Create KeyManager Api & move SpendingInfoDb to core (#1848)
* Create KeyManager Api & move SpendingInfoDb to core

* Fix docs, remove sealed form KeyManagerApi

* Move SpendingInfoDb to core wallet api
2020-08-21 14:37:12 -05:00
Ben Carman
1d7793cc45
Only use appenders with no Logback conf (#1867) 2020-08-21 13:26:31 -05:00
Ben Carman
d6975340e0
Fix selecting Utxos twice in fundRawTransactionInternal (#1866)
* Fix selecting Utxos twice in fundRawTransactionInternal

* Simplify watch an arbitrary SPK test
2020-08-21 10:11:02 -05:00
Nadav Kohen
2a1c399838
Implement basic TLV functionality (#1847)
* Defined BigSizeUInt as in BOLT 1

* Introduced UInt16 and TLV types

* Responded to review

* Responded to review
2020-08-20 14:42:16 -05:00
rorp
773dbb702e
Watch arbitrary SPKs (#1860)
* Watch arbitrary SPKs

* fix unit tests

* fix unit tests

* one more fix

* revert the compiler parameters
2020-08-20 14:33:18 -05:00
Ben Carman
8529eb7939
Cache Travis Builds (#1859) 2020-08-20 07:06:20 -05:00
Ben Carman
0904ba4e4e
Fix V8 Migration (#1862) 2020-08-19 17:04:04 -05:00
Chris Stewart
68ec48c387
Bring back strict compiler opts (#1854) 2020-08-19 09:17:39 -05:00
Ben Carman
9a36d791dc
Fix safely broadcast a transaction twice twice test (#1851) 2020-08-19 06:20:45 -05:00
Ben Carman
7c62bb285f
Remove unnecessary parallelization in Wallet (#1823)
* Remove unnecessary parallelization in Wallet

* Fix things being called multiple times

* Move to independent function

* Move helper methods to be separate

* Move back to intermediate val
2020-08-18 15:30:52 -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
Ben Carman
26f47d269c
Fix server parsing for send to address (#1819) 2020-08-17 09:49:50 -05:00
Ben Carman
a3a2248aa1
Add missing route for getaddressinfo (#1834) 2020-08-17 06:27:16 -05:00
Ben Carman
667d2bc0e5
Fix case of cli command sendwithalgo (#1835) 2020-08-16 16:16:27 -05:00
Ben Carman
b1b5f0ad8d
Use database to calculate number of confirmations (#1789)
* Use database to calculate number of confirmations

* Check block is in best chain

* Use db

* Optimize getNumberOfConfirmations

* Fix compile issue for older versions

* Add better logging messages

* More logs

* Update confs sequentially
2020-08-16 16:15:13 -05:00
Ben Carman
0ca5b692dc
Fix get missing utxos (#1832) 2020-08-16 16:14:13 -05:00
Scala Steward
b13d9ce7dc
Update sbt-native-packager to 1.7.5 (#1838) 2020-08-16 09:01:16 -05:00
Scala Steward
86647d3a32
Update postgresql to 42.2.15 (#1831) 2020-08-16 08:50:26 -05:00
Ben Carman
60e82894d7
Don't wait for rescan completion to send message (#1836) 2020-08-16 08:46:36 -05:00