Commit Graph

289 Commits

Author SHA1 Message Date
benthecarman
bcda2467ef
Add error messages for when DLC GUI functions timeout (#3184) 2021-05-28 19:17:13 -05:00
benthecarman
03a0ca5ee9
Add QR Code to get adress dialog (#3186) 2021-05-28 06:33:37 -05:00
benthecarman
604194293c
Replace GUI balance thread with a akka scheduler (#3174)
* Replace GUI balance thread with a akka scheduler

* Make actory system a param
2021-05-27 13:17:32 -05:00
Chris Stewart
4146876369
Add DatadirUtil to centralize logic for finding our actual datadir (#3171) 2021-05-27 13:08:14 -05:00
benthecarman
f8d5202974
Add contract info to ViewDLC (#3177) 2021-05-27 13:07:50 -05:00
benthecarman
66e160a918
Send txId instead of full serialized transaction (#3175) 2021-05-27 11:59:42 -05:00
benthecarman
957c5c3a8a
Open bundle GUI at last used tab (#3164) 2021-05-27 07:48:26 -05:00
benthecarman
521a1e2555
Remove unused AcceptDLCDialog file (#3158)
* Remove unused AcceptDLCDialog file

* Remove others
2021-05-27 07:13:37 -05:00
benthecarman
180d7dfcd3
Make loading icon appear until server is full started (#3168) 2021-05-27 07:05:41 -05:00
benthecarman
3d728837ee
Add ability to enter contract info in offer dialogue (#3160) 2021-05-27 06:54:46 -05:00
benthecarman
fb81552f6d
Don't fetch all DLC data when canceling DLC (#3159)
* Don't fetch all DLC data when canceling DLC

* Allow unmarkUTXOsAsReserved when canceling DLC

* Add ability to cancel a Signed DLC

* add gui conf window
2021-05-27 06:28:09 -05:00
benthecarman
96fc544572
Fix logging in bundle (#3167) 2021-05-27 06:17:04 -05:00
Chris Stewart
6c9d82166e
Fix main class in bundle (#3161)
* Fix main class in bundle

* Fix missing gui mainclass
2021-05-26 18:09:53 -05:00
benthecarman
379ffebd9c
Add startup config flow for bundle (#3142)
* Add startup config flow for bundle

* Add explainers and bundle config
2021-05-26 16:07:24 -06:00
benthecarman
c7bb783b1a
DLC GUI pulldown (#3148)
* adaptor-dlc GUI pulldown

* hodl-mccormack-dlc pulldown
2021-05-26 12:12:57 -05:00
Chris Stewart
55db4fbd6b
Remove logging requests and responses for directives unless logging is DEBUG level (#3141) 2021-05-25 19:51:31 -05:00
benthecarman
be8e965367
DLC Wallet pulldown (#3138)
* DLC Wallet pulldown

* Respond to review
2021-05-25 17:31:01 -05:00
Chris Stewart
80e6a91056
Add application.conf to bundle (#3118)
* Add application.conf to bundle, move some configurations into db-commons/reference.conf

* Fix config
2021-05-21 10:59:23 -05:00
Chris Stewart
42966b3cbe
Remove logback from the cli module (#3117)
* Remove logback from the cli module

* Reset submodule
2021-05-21 07:11:07 -05:00
benthecarman
1e87cb0fde
Remove need for bitcoind install with remote (#3114) 2021-05-20 13:05:44 -06:00
Chris Stewart
fcf55df165
2021 05 19 jpackage bundle release (#3108)
* Remove tags usage, as our current tags are invalid for mac

* First try trying to get jpackage to work with bitcoin-s bundle

* Simplify bundle name for now

* Try to fix linux formatting

* Empty commit to re-run ci

* Empty commit to re-run ci 2

* Fix references to krystal bull artifacts

* Add icon to deb file

* Add icns file for bitcoin-s for mac

* Use same icon as mac os x

* Try to get tagging logic correct

* Add fetch depth 0

* Try bumping java ubuntu version to 1.16

* Try using openjdk@1.16.0-1

* Remove jpackage feature branch to test

* Empty commit to re-run ci 2

* Remove unused ico file
2021-05-19 16:38:32 -05:00
Chris Stewart
ba91ba5596
Add assembly instructions for bundle project (#3104)
* Add assembly instructions for bundle project

* revert reference.conf
2021-05-19 06:35:31 -05:00
Nadav Kohen
ac3bae403b
Pulled down all remaining non-wallet non-gui code on adaptor-dlc (#3101) 2021-05-18 06:29:46 -05:00
Nadav Kohen
58070f4120
Pulled down dlc and dlcTest projects into core and dlcTest (#3068)
* Pulled down dlc and dlcTest projects into core and dlcTest

Added dlcTest to CI runs and fixed compilation issues

* Fixed docs

* loosened fee rate bound assertions to only sanity test
2021-05-14 12:27:21 -05:00
benthecarman
2b8ac08cdc
Give oracle ability to sign messages with private key (#3070) 2021-05-12 10:09:34 -05:00
benthecarman
8e29b5c6f6
Change outpoint output format for cli commands (#3048)
* Change outpoint output format for cli commands

* Use lockunspent format

* update docs
2021-05-08 08:15:49 -05:00
benthecarman
1cda5cbf1e
Allow remote bitcoind backend (#3034) 2021-05-04 17:51:35 -05:00
Chris Stewart
f0a5833e6b
Fix compiler error (#3035) 2021-05-04 16:32:14 -05:00
benthecarman
f86f90dc32
Add getbalances cli command (#3022)
* Add getbalances cli command

* Add docs

* Locked -> reserved
2021-05-04 12:19:15 -05:00
Aris
507f5c772e
Remove request rejection duplication in ServerRoute (#3010) 2021-05-04 12:17:50 -05:00
Chris Stewart
84661bd122 Refactor BitcoinSRunner to use StartStop[Async] (#2986)
* Refactor BitcoinSRunner to use StartStop[Async]. This makes it easier to have a uniform interface to write for destruction code in BitcoinSRunnerTest

* Fix other ServerRunTest to cleanup after itself
2021-04-29 16:43:15 -05:00
benthecarman
bf831ae32e Fix lockunspent RPC (#2984)
* Fix lockunspent RPC

* Fix test
2021-04-29 07:57:14 -05:00
benthecarman
6fbaf9f9ce Add estimate fee cli command (#2983) 2021-04-28 16:43:20 -05:00
benthecarman
e3017fd17d Peer Message Receiver Refactor (#2938) 2021-04-27 15:54:44 -05:00
Chris Stewart
9ecea9f710 2021 04 24 bitcoin s scripts (#2961)
* Add new app/scripts project which is meant to store useful bitcoin-s scripts

* Add ScanBitcoind with an example of counting segwit txs between a range

* Fix bug of creating a new actor system everytime BitcoindRpcClient.apply(instance) is called

* Add BitcoindRpcClient.fromVersionNoSystem()

* Take ben's suggestions

* Fix compile

* Rework P2SHScriptSignature.isStandardNonP2SH() to account for nesting p2sh script inside of it

* fix compile on java8

* Enable app packaging in scripts project
2021-04-25 14:03:22 -05:00
benthecarman
105942efa2 Use filters for bitcoind backend syncing if available (#2926)
* Use filters for bitcoind backend syncing if available

* Start bitcoind polling after sync is done

* Fix compile issue and test
2021-04-20 17:28:23 -05:00
Chris Stewart
136d6f50f9 2021 04 19 Zip Bitcoin-s datadir (#2927)
* Fix bug where we weren't closing zip file

* Add filter for chaindb.sqlite

* Fix rebase
2021-04-20 10:30:15 -05:00
Chris Stewart
0aa32916ab Implement workaround for spendinginfodb by rescanning to find missing spendingTxId (#2918)
* implement workaround for rescanning to find missing spendingTxId

* Add links to PR

* Fix compile bug
2021-04-20 06:41:11 -05:00
Chris Stewart
4e1ace2706 2021 04 18 Use akka streams in BitcoindRpcBackendUtil.syncWalletToBitcoind (#2916)
* Initial implementation of wallet sync with bitcoind with akka streams

* Make BitcoindRpcBackendUtil.startBitcoindBlockPolling use akka streams

* rework BitcoindRpcBackendUtil.syncWalletToBitcoind() to use akka streams
2021-04-19 15:54:34 -05:00
Chris Stewart
a3954dbcae 2021 04 17 spendinfodb invariant (#2912)
* Add invariant to spendingInfoDb to that requires if the spendinginfodb is in a TxoState.spentStates, the SpendingInfoDb.spendingTxIdOpt is defined

* Remove unused SpendingInfoDAO.updateTxoState()

* Remove comment

* Make TxoState and explicit parameter for test methods. Most test methods depend on a sample utxo state, so make the caller of the method specify what state they want the txo to be in

* Fix github actions config

* Fix RoutesSpec test
2021-04-18 09:02:49 -05:00
benthecarman
b1be3347c9 Fix ZMQ Config with bitcoind backend (#2897)
* Fix ZMQ Config for bitcoind backend

* Fix nits
2021-04-13 14:56:28 -05:00
Chris Stewart
4f1f53e7ad Bump hikari logging interval to 10 minutes (#2888)
* Bump hikari logging interval to 10 minutes

* Change example configuration
2021-04-10 13:51:31 -05:00
benthecarman
d0629486ab Wallet Rebroadcast Transactions thread (#2711)
* Wallet Rebroadcast Logic

* Use wallet scheduler for address queue rather than it's own thread

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>

* Bump default

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-04-07 08:13:43 -05:00
Chris Stewart
c738f23e58 Fix build warnings that came with sbt 1.5.0 (#2857)
* Fix build warnings that came with sbt 1.5.0

* Fix more deprecation warnings

* Fix more warnings
2021-04-06 06:01:11 -05:00
benthecarman
fa80f36d2f Get all of Core working with JS (#2826)
* core-test-js-json

* Add SigPointComputer cross compile
Co-authored-by: Nadav Kohen <nadavk25@gmail.com>

* Fix java.time for scalajs

* InetAddress for scalajs

* Fix linking errors in coreTestJS

* Easy fixes

* InetAddress Tests

* Update micropickle, fix exact functions

* Get BigSizeUIntTest working with upickle

* Fix exact funcs

* Update Base58Test with upickle

* Update ScriptSignatureTest with upickle

* Update TransactionTest with upickle

* Update BlockFilterTest with upickle

* Update ScriptInterpreterTest with upickle

* Update MnemonicCodeTest with upickle

* Add InetAddress unit tests

* Fix compile errors

* Get core tests running, not passing

* Sign with js

* Fix PSBTUnitTest

* Fix PBKDF2 for JS

* Use bcrypto's secp256k1 instead of ecdsa

* Fix 2.12.12 compile

* Core tests passing :)

* Test corejs
2021-03-31 15:04:30 -05:00
benthecarman
85ff255df3 Update akka to v10.2.4 (#2832) 2021-03-29 09:59:34 -05:00
benthecarman
07514e2348 Remove logging from core (#2810)
* Remove logging from core

* Remove slf4j from testkit core

* Remove logback from coretest
2021-03-21 19:11:55 -05:00
benthecarman
9494eec1b8 Move blockhash to tx table from spending info table (#2744)
* Move blockhash to tx table from spending info table

* Add test, fix spending tx id col name

* Scaladocs, add test

* Add more unit test

* Make id not comparable in process tx test

* Fix tests

* attempt to fix

* Add mempool comment to scaladoc

* Deparallelize process inputs & outputs
2021-03-16 10:05:29 -05:00
Chris Stewart
5b4aac5178 Refactor starting second bitcoind in MempoolRpcTest, remove Thread.sleep (#2776)
* Refactor starting second bitcoind in MempoolRpcTest, remove Thread.sleep

* Add AkkaUtil.nonBlockingSleep(), replace usages of Thread.sleep() with it where possible

* Remove more Thread.sleep()

* Try bumping threadpool for scheduler

* Reduce scheduler threadpool size to 2

* Push to github to force re-run of CI
2021-03-10 09:36:34 -06:00
benthecarman
4bf4f0a027 Add signed outcome to getevent rpc, fix other small api bugs (#2757)
* Add signed outcome to get event rpc, fix other small api bugs

* Create separate type for decomp DLCAttestationType

* Add DLCOutcomeType to Oracle Event

* Calculate dlcOutcome, add invariant

* Fix test
2021-03-08 10:55:47 -06:00