Commit Graph

350 Commits

Author SHA1 Message Date
user411
bc3140c6bb
Default Use Tor to config value, space login pages the same (#3472)
* Default Use Tor to config value, space login pages the same, GUIUtil updates

* Use socks5ProxyParams.isDefined for Use Tor and add types to GUIUtil
2021-08-04 13:34:18 -05:00
user411
00841160e0
Modifer keys per OS, Mac native menubar (#3474)
* Modifer keys per OS, Mac native menubar

* Remove menuUtil in favor of ShortcutDown
2021-08-04 13:31:26 -05:00
benthecarman
7cac44de4d
DLC P2P in AppServer and GUI (#3462) 2021-08-04 07:06:19 -05:00
user411
ef16082b95
Add preferences for wallet window x,y,w,h persistence (#3473)
* Add preferences for wallet window x,y,w,h persistence

* Remove printlns
2021-08-03 18:42:31 -05:00
user411
c022261c4f
Remove colons from DLC view labels (#3471) 2021-08-03 16:57:10 -05:00
rorp
ca40af5d94
Tor support for BTC RPC (#3470)
* Tor support for BTC RPC

* change config format
2021-08-03 11:07:05 -05:00
benthecarman
1051e6365a
DLC P2P Client (#3402)
* DLC P2P WIP

* P2PClient refactor (#10)

* Add to CI

* Remove unused

* Attempt to create DLCNode and Tests

* Full Tor support

* Get DLCNegotiationTest passing

* Config options, connect & send func

* Test for DLCNode

* Add createDLCNode to config

* Fix formatting

* Update DLC state after all other data is set

* Remove unneeded line

* Respond to some review

* 2021 07 26 dlc node code review (#13)

* WIP

* WIP2

* Rewrite tests not use Await.result()

* Skip Tor test on CI

* Cleanup threadpool leaks in tests

* Handle actor pattern matching better

* Respond to review

* Implement DLCNode.stop

* sock5 -> socks5

* Use Tcp.Unbind

* Respond to review

* Implement postStop

* Switch to unbind

Co-authored-by: rorp <rorp@users.noreply.github.com>
Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-08-02 18:15:56 -05:00
user411
9aadf9053d
Dialogs to CliCommandProducers with buildView(), common fileChooser (#3456)
* Dialogs to CliCommandProducers with buildView(), common fileChooser

* Fix Insets import error

* Code cleanup

* Parameterize CliCommandProducer to allow us to be more specific about the CliCommand

* Refactor CliCommandProducer to return just T rather than Some[T]

* Use Option rather than null

* Add error-label style

* Move Dialog tracking to Option[Dialog]

* Move GUIUtil params to Options

* Fix buildView param ordering and Try() notation

* Use match notation on file handling Options

* Fix Option variable naming/handling

* Add privates and style cleanup

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-07-30 12:30:11 -05:00
Shruthii RG
e2c2798e60
Implemented the ability to fetch unconfirmed transactions (#3429)
* relay flag in version message made configurable

* modified test classes as well

* Update configuration.md

* reverted few files and cleaned up format

* fixed mistake

* enabled neutrino node to receive transactions as a callback

* added txid to log message

* changed txId to txIdBE

* unit test added for checking if we're getting transaction as a callback
2021-07-23 13:01:07 -05:00
benthecarman
2597904019
Move DLCWalletApi to core module (#3438) 2021-07-21 15:25:18 -05:00
Shreyansh
4be2b2109b
[WIP] Adding multi-peer support (#3401)
* establish conn with multiple peers

squash 1

squash 2

squash 3

* add tests

* change log msg level

* minor changes

* fix

* formatting

* fix docs

* commit to rerun ci

* changes from comments

* fix bug

* rerun ci
2021-07-21 15:18:45 -05:00
benthecarman
f20cdf667c
Pretty print PnL in table view (#3400) 2021-07-16 10:15:35 -05:00
user411
19fb1cf17a
Add network selection combobox for Neutrino (#3409)
* Add network selection combobox for Neutrino fixes 3406

* Internalized ComboBox items, added .onion proxy.enabled auto-flagging

* Change ComboBox to BitcoinNetwork type

* Separate proxy and config building

* Resolve network name to canonical dirName
2021-07-16 09:03:54 -06:00
rorp
8b663d91b6
Tor support for P2P (#3311)
* Tor support for P2P

* fix stuck connections

* unit tests

* docs

* update docs

* respond to the PR comments

* fix docs
2021-07-13 14:27:24 -05:00
benthecarman
c1715760c6
Add connection indicator to GUI (#3381) 2021-07-11 06:36:16 -05:00
user411
253f7444c6
Show error on SignedDigit contract (#3376) 2021-07-07 15:51:29 -05:00
user411
bb838624ce
Export Result and Save Backup handle no file selection (#3370)
* Export Result and Save Backup handle no file selection, New Point in curve not marked Endpoint

* Revert endpoint defaullt change

* Change to Option[File] from Save Dialog

* Explicit no return from cases
2021-07-07 15:35:11 -05:00
Chris Stewart
bc79a24f53
Get both bundle and app server logging working (#3362)
* Get both bundle and app server logging working, oracleServer does not compile

* Get everythig compiling

* Fix bug where bundle wouldn't use command line param rpc port for ConsoleCli

* Add unit tests to make sure we are translating to config properly

* Fix bug where app config wasn't re-created after parsing bundle args

* Fix datadir resolution in BundleGUI

* Implement force-recalc-chainwork

* fix bug

* Try not using tilde on windows

* Try to print datadir on CI

* Try using stackoverflow answer

* Try escaping windows path

* Take ben's suggestion of using AppConfig.safePathToString

* Just check the paths are equal

* Fix nullpointerexceptions on startup

* Fix bug where bitcoin-s-bundle.conf was not being read

* Remove usage of --conf flag in bundle when starting backend server

* Fix compile

* Rename usedDir -> networkDir

* Fix passing in datadir
2021-07-07 10:59:11 -05:00
benthecarman
5df7a8bdf3
Add test for ZMQ Polling backend (#3088)
* Add test for ZMQ Polling backend

* Use TestAsyncUtil, increase maxTries

* Add multiple attempts
2021-07-06 19:20:12 -05:00
benthecarman
629c2a2c31
Set sync height on new wallet (#3368) 2021-07-06 12:33:38 -05:00
benthecarman
6af9e47e38
Fix showing error popups in GUI (#3353) 2021-07-01 10:27:23 -05:00
benthecarman
2f7e5876d3
Set default neutrino peer based on network (#3360) 2021-07-01 10:27:05 -05:00
benthecarman
6414833111
Call trim on DLC message text boxes (#3348) 2021-06-29 14:18:06 -05:00
benthecarman
81fe7d76ee
Remove canceled DLCs from table (#3349) 2021-06-29 13:30:32 -05:00
benthecarman
53cafa7898
Set closing txid on execute from View Dialog (#3340) 2021-06-29 12:28:35 -05:00
benthecarman
d7b753a869
Add invariant and better error message for invalid numeric contract descriptor (#3338)
* Add invariant and better error message for invalid numeric contract descriptor

* Better error message

* Fix test name
2021-06-28 10:58:15 -05:00
benthecarman
af9bf21058
Improve logs in BitcoindRpcBackendUtil (#3339) 2021-06-28 09:44:26 -05:00
benthecarman
d669bd58ae
Resolve bundle config and read/write in tmp file (#3327)
* Have it save config for next time

* Fix compile
2021-06-28 07:46:32 -05:00
Chris Stewart
cb5ec20eac
Silence all scaladoc warnings (#3336) 2021-06-28 07:14:09 -05:00
user411
1f43a1910f
Add ExplorerEnv.fromBitcoinNetwork() and use for View on Oracle Explorer siteUrl (#3332) 2021-06-25 12:31:47 -05:00
benthecarman
88b99b03b5
Add view on oracle explorer button (#3328)
* Add view on oracle explorer button

* Fix compile

* Fix docs
2021-06-25 09:53:01 -05:00
Chris Stewart
ea26c8b3a3
2021 06 23 scalafx dep (#3324)
* WIP

* Remove usage of JFXApp, use JfxApp3
2021-06-23 18:15:32 -05:00
benthecarman
05204e6235
Make it so table doesn't reorder on single update (#3321)
* Make it so table doesn't reorder on single update

* Default ordering by status

* Sort table on every update

* Secondary sort by evenId

* Sort by dlcId too

* Switch to contract Id

* Update instead of delete and replace

* move to function, use for updateDLCs
2021-06-23 18:14:43 -05:00
benthecarman
a98a26c929
Make mempool.space fee provider network specific (#3316) 2021-06-22 12:07:44 -05:00
benthecarman
b8538f0300
Fix DLC Table View not being updated (#3315)
* Fix DLC Table View not being updated

* Fix DLC Table View not being updated
2021-06-22 10:53:15 -05:00
Chris Stewart
94081502c8
Remove previous stable version usage for windows builds as for some reason it doesn't work when setting up dev envs for the first time (#3292) 2021-06-18 09:18:54 -05:00
benthecarman
d6878b0226
Use same network as bitcoind backend (#3285)
* Require same network for bitcoind and appServer

* Use same network as bitcoind backend

* touchups
2021-06-17 10:44:25 -05:00
benthecarman
898ebed4e9
Windows packaging (#3210) 2021-06-17 07:20:07 -05:00
benthecarman
00e11b4930
Fix rows in ViewDLCDialog (#3275) 2021-06-17 06:50:25 -05:00
benthecarman
bd11c84462
Add ability to sweep wallet (#3274)
* Add ability to sweep wallet

* Respond to review

* empty
2021-06-16 14:37:40 -05:00
benthecarman
7ecf3edbd6
Update utxo states correctly for bitcoind backend (#3276) 2021-06-16 12:30:43 -05:00
Chris Stewart
63083bf642
Make getDLCs async to improve performance (#3222)
* Make getDLCs async to improve performance

* remove logs

* remove unecessary logs

* Fix unused
2021-06-15 09:38:36 -05:00
benthecarman
935354993b
Populate Broadcast DLC GUI (#3260) 2021-06-13 09:29:08 -05:00
benthecarman
65f096f65a
Populate Sign GUI when choosing a file (#3243)
* Populate Sign GUI when choosing a file

* Add error messages, add for numeric
2021-06-11 15:14:18 -05:00
benthecarman
95f6c0d790
Skip adding DLC sigs if we already have them (#3236)
* Skip adding DLC sigs if we already have them

* Fix compile

* Fix test
2021-06-09 18:42:17 -05:00
benthecarman
cd59aff063
Fix for showing txid on send (#3237) 2021-06-09 07:58:02 -05:00
Chris Stewart
9431be2f25
2021 06 07 dlc wallet pnl (#3229)
* WIP

* Add profit and loss and rate of return for entire wallet

* Fix rebase

* Address part 1 of code review from Ben

* Add unit test for wallet accounting
2021-06-08 15:05:40 -05:00
Chris Stewart
a61c11acfc
Implement sharing of actor systems across the GUI and backend app server (#3220)
* Implement sharing of actor systems across the GUI and backend app server

* Add timestamp to system names

* Fix test case
2021-06-07 11:38:33 -05:00
benthecarman
5036c419be
Add from file ability for AddDLCSigsAndBroadcast DLCs (#3219) 2021-06-03 21:14:03 -05:00
benthecarman
1af9465881
Update balance on cancel DLC (#3205) 2021-06-02 06:16:54 -05:00