Commit graph

3102 commits

Author SHA1 Message Date
benthecarman
e63a12e47f
Better error message for invalid DLC refunds (#3209) 2021-06-15 10:57:50 -05:00
Chris Stewart
11cef133e0
2021 06 15 issue 3266 (#3269)
* Specify team id rather than developer id for mac builds when notarizing the artifacts

* Try to use PublicID

* Try to use --team-id rather than --username

* try specifying both teamid and username

* remove special branch for testing
2021-06-15 10:06:03 -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
Scala Steward
3c8be6e8d9
Update sbt-coveralls to 1.3.0 (#3262) 2021-06-14 13:35:54 -05:00
Chris Stewart
aaa7b42ae7
Add unit test we can handle spending funds and receiving funds in same tx (#3185)
* Add unit test we can handle spending funds and receiving funds in the same transaction inside the wallet

* Use fundRawTranaction() to make sure the utxo is reserved
2021-06-14 08:57:30 -05:00
Scala Steward
4f936b2cbf
Update sbt to 1.5.4 (#3264) 2021-06-14 06:10:04 -05:00
benthecarman
935354993b
Populate Broadcast DLC GUI (#3260) 2021-06-13 09:29:08 -05:00
Scala Steward
eeb4741d60
Update sbt-scalajs, scalajs-library, ... to 1.6.0 (#3233) 2021-06-12 08:30:08 -05:00
benthecarman
a526ad14ee
Fix DLC Accounting errors (#3249) 2021-06-12 08:12:38 -05:00
benthecarman
c2237ab6fe
Only unreserve our utxos when canceling a DLC (#3250) 2021-06-12 08:01:24 -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
Chris Stewart
5caf7ee38b
2021 06 10 cache spendinginfodbs for block (#3245)
* Add mark as spent optimization to batch writes rather than write inside the method

* Scaladoc refactor

* Refactor received spendingInfoDbs to be cached outside of processTransactionImpl()

* Implement processBlockCachedUtxos() to improve performance

* Fix typo
2021-06-11 15:14:02 -05:00
Scala Steward
4f4fd111e7
Update akka-actor, akka-discovery, ... to 2.6.15 (#3246) 2021-06-11 13:46:40 -05:00
Scala Steward
1215a22857
Update postgresql to 42.2.21 (#3248) 2021-06-11 13:27:28 -05:00
Chris Stewart
af8aaa7bad
2021 06 07 markasspent optimization (#3244)
* Add mark as spent optimization to batch writes rather than write inside the method

* Scaladoc refactor
2021-06-11 13:26:24 -05:00
Scala Steward
4b2bc379e3
Update bcprov-jdk15on to 1.69 (#3238) 2021-06-09 18:43:55 -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
Chris Stewart
8574edede7
Move addressDb database read out of inner loop (#3239)
* Move addressDb database read out of inner loop and into processReceivedUtxo() to hopefully improve performance

* Cleanup
2021-06-09 12:18:57 -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
7ba7f8b9ba
Try to add block generate to address in fixture setup to get around compact filter sync edge case (#3231)
* Try to add block generate to address in fixture setup to get around the case where block headers & filter headers are synced but compact filters are not

* Push to github to force re-run of CI 2

* Add ChainApi.getBestFilter(), use it in sync to determine if filter headers & filters are in sync

* Push to github to force re-run of CI 3

* Simplify getBestFilter, add unit test

* Add more comments, clean up some code
2021-06-08 12:47:28 -05:00
benthecarman
a56086b751
Use nonceDb's outcome to calc oracle outcome (#3217) 2021-06-08 12:32:11 -05:00
Scala Steward
0f9024b7ae
Update akka-grpc-runtime_2.12, ... to 2.0.0 (#3143) 2021-06-08 10:49:07 -05:00
benthecarman
c9798d6842
Test for processing a block we receive and send in (#3189)
* Test for processing a block we receive and send in

* Use psbts
2021-06-08 10:46:54 -05:00
Chris Stewart
f958b4036c
Bump otj-pg-embedded to 0.13.14 (#3228) 2021-06-07 13:47:00 -05:00
Chris Stewart
a0ce337b22
Upgrade scala versions on ci to 2.12.14 and 2.13.6 (#3226) 2021-06-07 12:01:08 -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
Chris Stewart
fc5bb956dc
Try making the dlc fee test suite async (#3227)
* Try making the test suite async

* Push to github to force re-run of CI

* Push to github to force re-run of CI 2
2021-06-07 10:23:48 -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
Chris Stewart
4efe88fcba
UPdate sbt and scoverage in conjunction (#3216) 2021-06-02 06:09:43 -05:00
Chris Stewart
4c9f174a4b
Remove all flyway plugin sbt config (#3215) 2021-06-02 06:08:43 -05:00
Chris Stewart
2269a052b1
Rework findDLC() (#3214)
* Rework findDLC(), break things out into separate objects to make things more testable and correct

* Address ben's code review

* Add caching of oracle outcomes we know are valid and broadcast
2021-06-01 14:54:00 -05:00
benthecarman
549d840d02
Only update DLC we are viewing (#3211) 2021-05-31 17:45:00 -05:00
benthecarman
deb0862e07
Fix showing reserved balance instead of unconfirmed in GUI (#3207) 2021-05-31 16:30:54 -05:00
benthecarman
d3f827a127
Update DLC Table with scheduler (#3204) 2021-05-31 11:27:37 -05:00
Chris Stewart
bf02e89faa
2021 05 29 dlc pnl (#3198)
* WIP

* WIP2

* Get tableview rendering something

* Add basic unit tests for accounting

* Add rate of return

* Add myPayout and theirPayout to json objects

* Address code review

* Fix 2.12 compile, adjust table view

* drop isInit column on table view

* Fix scala 2.13
2021-05-31 11:12:24 -05:00
benthecarman
acc3d228d1
Better messaging while syncing headers (#3202) 2021-05-31 10:50:31 -05:00
benthecarman
4f4c342f80
Sort points in numeric gui (#3203)
* Sort points in numeric gui

* Print outcomesValuePoints
2021-05-31 10:50:14 -05:00
Chris Stewart
bd877c80a9
Get logging working in bundle (#3200)
* Get logging working in bundle by making sure the system property is first thing set

* Switch GUI to lazy
2021-05-31 08:00:23 -05:00
Chris Stewart
43a5c5fc49
Add dlc wallet test to postgres matrix (#3199)
* Add dlc wallet test to postgres matrix

* Fix migration and DAO

Co-authored-by: Ben Carman <benthecarman@live.com>
2021-05-31 06:51:39 -05:00
benthecarman
ccc4035056
Sync Height on screen (#3196) 2021-05-29 07:00:00 -05:00
benthecarman
5580771f03
Add export and copy result buttons (#3193)
* Bring back export result button

* Add export and copy result buttons
2021-05-29 06:57:13 -05:00
benthecarman
46b33ec0b8
Make add sigs broadcast the funding transaction (#3179)
* Make add sigs broadcast the funding transaction

* Rename to Broadcast DLC
2021-05-28 20:02:24 -05:00
benthecarman
0e701bc9d0
Fix verify funding sigs (#3194)
* Fix verify funding sigs

* Sort funding inputs

* Sort utxos in dlc signer

* Other multi input fixes & tests

* Fix compile error
2021-05-28 19:59:45 -05:00
benthecarman
7a5e108ff2
Add button to zip datadir in GUI (#3183) 2021-05-28 19:17:41 -05:00
benthecarman
bcda2467ef
Add error messages for when DLC GUI functions timeout (#3184) 2021-05-28 19:17:13 -05:00
benthecarman
5a79acb59c
Fix DLCStatusPickler (#3190) 2021-05-28 17:27:31 -05:00
Scala Steward
1402d1a381
Update scala-library to 2.12.14 (#3187) 2021-05-28 11:01:17 -05:00
benthecarman
03a0ca5ee9
Add QR Code to get adress dialog (#3186) 2021-05-28 06:33:37 -05:00