Chris Stewart
d508d65142
Implement ability to cancel bitcoind polling jobs ( #4538 )
...
* Implement ability to cancel bitcoind polling jobs
* Fix bug so we don't block application on fully syncing wallet against bitcoind
2022-07-24 19:56:53 -05:00
Chris Stewart
4ef27dd163
Fix bug where dlcNode was not apart of tor dependent configs ( #4537 )
2022-07-24 16:48:25 -05:00
Chris Stewart
67dd16d8ad
Add missing calls to BitcoinSAppConfig.stop() ( #4535 )
2022-07-24 15:59:03 -05:00
benthecarman
f1e9a34690
Remove hard coded values for embedded pg config ( #4533 )
2022-07-24 13:21:32 -05:00
Chris Stewart
b905afa65e
2022 07 20 wallet rescan stream ( #4530 )
...
* Implement rescan with akka streams
Get basic stream working with rescan
Fix bug where we weren't using rescan specific threadpool
Implement killswitch for rescan
* WIP: Expose promise to allow external completion of rescan stream
* Rework RescanStarted.RescanStarted to contain a promise to complete the stream early, and a future that represents the completed streams materialized value
* Comment cleanup
* Fix compile errors, remove killswitch
* Fix 2.12.x compile
* Introduce ActorSystem into wallet, refactor rescans to use that ActorSystem
* Fix import
* Fix bug where we were prepending instead appending to batched Vector
* Propogate RescanState upwards into WalletRoutes
* Refactor fetching of filters to be a Flow
2022-07-24 12:26:21 -05:00
benthecarman
412e6a06c4
Allow pg embedded better support for 3rd party libraries ( #4532 )
2022-07-24 07:26:35 -05:00
Chris Stewart
d4210fad65
Pull over changes from loadwallet branch ( #4527 )
2022-07-21 12:12:32 -05:00
benthecarman
6b9d2db350
Update license to latest year ( #4525 )
2022-07-20 16:36:06 -05:00
Chris Stewart
f5cca7e5e1
Add guard for calling NodeCallbackStreamManager.stop() ( #4523 )
...
* Add guard for calling NodeCallbackStreamManager.stop()
* scalafmt
2022-07-20 10:16:26 -05:00
benthecarman
c210052640
Refactor coin selection to be not be bitcoin-s specific ( #4496 )
...
* Refactor coin selection to be not be bitcoin-s specific
* Add to CoinSelectorUtxo
2022-07-20 08:40:11 -05:00
Chris Stewart
0a127368f0
2022 07 18 node callback stream manager ( #4520 )
...
* Implement akka stream proxy for nodecallbacks
Add killswitch to createBitcoindNodeCallbacksForWallet
Add unit test for killswitch in createBitcoindNodeCallbacksForWallet
Add delays to make sure callbacks are executed
Fix rebase
Move killswitch out of methods into class level val
* Bump timeout
* Attempt to implement NodeCallbacks proxy with akka streams
* Refactor CallbackUtil to use NodeCallbackStreamManager
* Rebase & remove killswitch
* Implement NodeCallbackStreamManager.+ method
2022-07-20 06:28:55 -05:00
rorp
5d309fbae0
Fee rate WS notification ( #4518 )
...
* Fee rate WS notification
* make the test more CI friendly
* fix the default config
* always return errors
* fix build
* scalafmt
* send notifications every time
2022-07-19 16:41:06 -05:00
Shreyansh
2e309086d5
Fix block fetch issue #4513 ( #4522 )
...
* fix block fetch issue #4513
* start syncing before rescane
2022-07-19 16:40:36 -05:00
Chris Stewart
0cb93ddbf4
2022 07 17 node callback akka streams ( #4516 )
...
* Implement akka stream proxy for nodecallbacks
Add killswitch to createBitcoindNodeCallbacksForWallet
Add unit test for killswitch in createBitcoindNodeCallbacksForWallet
Add delays to make sure callbacks are executed
Fix rebase
Move killswitch out of methods into class level val
* Bump timeout
2022-07-19 13:45:41 -05:00
Chris Stewart
e3a7c0971f
Refactor to hide the Message paramter that gets fed to the websocket queue, move it to a internal implementation detail ( #4514 )
2022-07-18 07:32:18 -05:00
Chris Stewart
f6df30c45e
Make appServerTest run in parallel to speed up test suite ( #4515 )
2022-07-17 18:08:39 -05:00
Chris Stewart
5c9092889b
Add abillity to clear callbacks ( #4512 )
...
Fix missing clearCallbacks()
Add some tests
Remove uncessary code from test
2022-07-17 09:10:57 -05:00
Chris Stewart
948d2b424e
Make KeyManagerAppConfig.walletName return String rather than Option[String] ( #4507 )
2022-07-16 09:33:10 -05:00
Chris Stewart
6f42f83146
Move OSX check inside of jre path check, fix bug where quarantine wasn't working in case where we are in the same directory as script ( #4508 )
2022-07-14 06:57:52 -05:00
Chris Stewart
d1375a589e
2022 07 12 server startup cleanup ( #4501 )
...
* Remove handleMissingSpendingInfoDb
* Remove chainwork recalc
* Fix compile error and move torcallbacks in to buildNeutrinoCallbacks()
* Fix compile pt2
2022-07-13 14:22:19 -05:00
Chris Stewart
cdef8c01dd
Set syncing flag to true on startup ( #4506 )
2022-07-13 13:09:06 -05:00
Chris Stewart
6dfa7683e4
Implement a timeout on fee rate requests ( #4503 )
...
* Switch to bitgo fee provider by default
* Implement 1 second timeout on retrieving fee rate
2022-07-12 19:49:31 -05:00
rorp
e90e372e54
Add sync
JSON field to the getinfo
endpoint output ( #4452 )
...
* Add `sync` JSON field to the `getinfo` endpoint output
* improve test coverage
* update docs
* rename sync flag
* WebSocket notifications
* fix unit tests
* fix unit tests
* increase test timout
2022-07-12 14:41:43 -05:00
Chris Stewart
9930c964f7
sbt 1.7.1 ( #4497 )
2022-07-12 07:49:26 -05:00
Chris Stewart
9412170f09
2022 07 11 fix invalid csa neg ( #4495 )
...
* Implement incorrect signature handling correctly for OP_CHECKSIGADD
* Revert tests
* scalafmt
2022-07-12 06:58:09 -05:00
benthecarman
f8f4facdd1
Correctly parse TaprootKeyPath how they are represented ( #4494 )
2022-07-11 19:45:59 -05:00
Chris Stewart
5b44c074f1
Fix chmod: jre/bin/java: No such file or directory
errors ( #4493 )
...
* Fix 'chmod: jre/bin/java: No such file or directory' errors
* Remove echos
* Remove duplicate quaratine in oracle-server-extra-startup-script.sh
2022-07-11 15:04:04 -05:00
Chris Stewart
1b169d8fa0
Implement torstarted
websocket callback ( #4476 )
...
* Implement tor started websocket callback
* Implement tor callbacks when tor is provided
2022-07-11 10:26:30 -05:00
Chris Stewart
b16a8ca6aa
Fix bug where we weren't checking if a TaprootKeyPath w/ annex has two stack elements ( #4491 )
2022-07-11 09:17:52 -05:00
Chris Stewart
1fc6d2a793
Upgrade sbt to 1.7.0 ( #4490 )
2022-07-11 08:05:22 -05:00
benthecarman
59732809d0
Represent and handle SIGHASH_DEFAULT
correctly in TaprootKeyPath
( #4488 )
...
* Represent and handle SIGHASH_DEFAULT correctly in TaprootKeyPath
* Prevent construction of invalid TaprootKeyPath, fix tests
* Have SIGHASH_DEFAULT be SIGHASH_ALL in preTaproot cases
2022-07-11 07:22:08 -05:00
benthecarman
ef50becf1b
Enforce MAX_PUSH_SIZE for taproot ( #4486 )
2022-07-11 06:41:37 -05:00
benthecarman
db63b286b3
Fix hashtype check to correctly handle scala's conversion ( #4487 )
2022-07-11 06:40:40 -05:00
benthecarman
91a1c84a6f
Enforce minimalif for tapscripts ( #4484 )
2022-07-10 19:03:51 -05:00
benthecarman
990e344a49
Disallow OP_CMS in taproot ( #4485 )
2022-07-10 18:47:31 -05:00
benthecarman
cc45924ed8
Validate max ScriptNumber bytes in OP_CHECKSIGADD ( #4483 )
...
* Validate max ScriptNumber bytes in OP_CHECKSIGADD
* Use correct error
* Fix so we check stack length before getting sig bytes
2022-07-10 17:55:44 -05:00
Chris Stewart
3892fa23ef
Restrict hash types allowed by taproot signature verification ( #4481 )
...
* Restrict hash types allowed by taproot signature verification
* Comment and small refactor
* Re-ignore taproot tx tests failures
* scalafmt
* Address ben's code review
* Calculate hash after doing cheap checks
2022-07-10 16:49:05 -05:00
benthecarman
3821060e68
Schnorr sig parsing checks ( #4482 )
2022-07-10 16:00:38 -05:00
Chris Stewart
ec599a5c3d
Fix containsOpSuccess
implementation ( #4480 )
...
* Fix containsOpSuccess implementation
* Cache opSuccessBytes
2022-07-10 13:54:47 -05:00
benthecarman
0397ca6c78
tapscript/sigopsratio_3 failing correctly ( #4461 )
2022-07-10 08:11:57 -05:00
Chris Stewart
84ce76e16c
Fix race condition related to sqlite3 database not being created before we access it ( #4479 )
2022-07-09 21:38:21 -05:00
Chris Stewart
1ae4d40dac
Implement rescancomplete
callback ( #4475 )
...
* Implement rescancomplete callback
* Add walletName to payload
* Add to documentation
2022-07-09 16:23:15 -05:00
Chris Stewart
de935032ea
Make coreTestJVM.dependOn(testkit), add new multi core dispatcher to allow more cores for TaprootTTests to hopefully take load off the scala execution context ( #4477 )
2022-07-09 09:40:39 -05:00
rorp
414557effb
Add imported
flag to the seed JSON ( #4459 )
...
* Add `imported` flag to the seed JSON
* scalafmt
* update `walletinfo`
* fix docs
Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-07-08 18:55:47 -05:00
Shreyansh
0b53c7be12
Change tests to use disconnectnode rpc instead of restarting bitcoind ( #4468 )
...
* change tests to use disconnectnode rpc instead of restarting bitcoind
* fix issue with querying for node uri when not initialized
2022-07-08 18:53:37 -05:00
Chris Stewart
9985db3b41
Bump to jdk18 ( #4471 )
2022-07-08 14:56:03 -05:00
Chris Stewart
3ea4763cfc
Change 2.13.7 -> 2.13.8 in a few spots where I missed it ( #4470 )
2022-07-08 14:24:18 -05:00
Shreyansh
7c649d39db
Fix filter sync if headers received while syncing ( #4463 )
...
* fix filter sync if headers received while syncing
* remove unintended diffs
2022-07-08 13:44:15 -05:00
Chris Stewart
2968a9ee15
Try to test out setup-java CI action ( #4466 )
...
* Try to test out setup-java CI action
* Attempt to fix
2022-07-08 13:43:17 -05:00
benthecarman
5df5bf6741
Add support for taproot keyspend PSBTs ( #4462 )
2022-07-08 09:08:19 -05:00