Commit Graph

3407 Commits

Author SHA1 Message Date
Chris Stewart
0ba6bb4da0
Try to fix windows path (#4100)
* Try to fix windows path

* Just remove windows native image
2022-02-15 10:46:55 -06:00
Chris Stewart
075b90c930
2022 02 15 update 1.9.0 release notes (#4099)
* Update release notes to 4e6c68155e

* Add some descriptions to modules

* Add high level description, fix versions

* Fix typo
2022-02-15 09:31:27 -06:00
Chris Stewart
2bce49b519
Remove things deprecated in 1.8 (#4097) 2022-02-15 09:24:22 -06:00
Chris Stewart
95d9bf44a5
Add 1.9.0 of the website (#4096) 2022-02-15 07:48:48 -06:00
rorp
4e6c68155e
Sort outcomes in decodeoffer response (#4094)
* Sort outcomes in `decodeoffer` response

* scalafmt

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-02-14 19:14:29 -06:00
Chris Stewart
e8ee5d7339
Bump website dependencies (#4095) 2022-02-14 18:59:10 -06:00
Chris Stewart
dc47c070a2
Fix SpendingInfoDAO.findOutputsReceived() bug (#4090) 2022-02-14 10:11:23 -06:00
rorp
4d85b7a3d7
Support for big SPKs (#4084)
* Support for big SPKs

* Support for big SPKs

* Bump number of migrations

* Fix other test case

* cleanup

* cleanup

* fix psql migrations

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-02-14 07:22:34 -06:00
Chris Stewart
3931897e7f
2022 02 13 issue 3405 (#4089)
* Fix version bug in download

* Remove more 'v' tag prefixes on tag

* Fix zip

* Final fixes on download links

* Remove extra docs
2022-02-13 16:26:54 -06:00
Chris Stewart
07fcfd0568
2022 02 12 update mdoc fix downloadlink (#4086)
* Fix broken website examples

* Update mdoc dependency and fix download link
2022-02-12 16:20:34 -06:00
Chris Stewart
13c46e0af8
Move expensive script checks to last inside of P2PKWithTimeoutScriptPubKey (#4087)
* Move expensive script checks to last inside of P2PKWithTimeoutScriptPubKey

* Fix compile
2022-02-12 16:18:23 -06:00
Chris Stewart
e5707d5002
Fix broken website examples (#4085) 2022-02-12 13:45:53 -06:00
Chris Stewart
55ecc1ae8f
Implement connection timeout (#4081) 2022-02-12 09:11:13 -06:00
Chris Stewart
526ed37a28
Cleanup docs that use $ (#4083) 2022-02-12 08:18:14 -06:00
Chris Stewart
4ea87c741f
2022 02 12 cleanup example config (#4082)
* Make example configuration better so that the node starts up if you just copy and paste the example configuration into your bitcoin-s.conf file

* More clarificatoin
2022-02-12 07:45:11 -06:00
benthecarman
3d674c37f3
Create upsertAllAction (#4073) 2022-02-11 13:06:50 -06:00
rorp
1708add6ec
Make Tor connect error message more human readable (#4078) 2022-02-11 12:35:37 -06:00
rorp
6cfbf67812
Prevent DB state corruption while accepting the same offer multiple times (#4067)
* Prevent db state corruption while accepting the same offer multiple times

* cleanup
2022-02-11 12:23:17 -06:00
benthecarman
2166faf61d
Make findByPrimaryKeysAction public (#4079) 2022-02-11 12:06:56 -06:00
Chris Stewart
eeabe5cd77
2022 02 11 clearutxoandaddresses for account transactional (#4077)
* Make clearUtxosAndAddresses(account) transactional

* Add deleting address tags
2022-02-11 12:03:59 -06:00
benthecarman
3991789129
Don't call findByPrimaryKeys if ids is empty (#4074) 2022-02-11 06:51:32 -06:00
rorp
bce58ba33d
Validate announcement signatures on create/accept offer (#4071)
* Validate announcement signatures on create/accept offer

* unit tests
2022-02-11 06:50:45 -06:00
rorp
5366428fb2
Implement BitcoindRpcClient.epochSecondToBlockHeight (#4068) 2022-02-10 07:30:30 -06:00
Chris Stewart
35dccd88d6
Add new section to README for running bitcoin-s, add link to the web frontend (#4069) 2022-02-10 06:16:41 -06:00
Chris Stewart
9de4b0272a
2022 01 31 issue 4030 (#4066)
* WIP

* WIP

* Get basic unit test passing for new adaptor sig states

* Fix compile
2022-02-09 13:15:44 -06:00
Chris Stewart
f253b5055e
2022 02 08 dlc accept refactor (#4064)
* Create buildAcceptWithoutSigs

* Create DLCAcceptUtil

* Address roman's code review
2022-02-09 07:39:07 -06:00
Chris Stewart
99418c798a
2022 02 07 release note draft (#4060)
* WIP

* Finish sorting commits

* Revert files
2022-02-08 07:20:13 -06:00
benthecarman
44373f8449
Add functions for LND subscription (#4062) 2022-02-08 07:20:03 -06:00
rorp
e2b9c458e4
Change DLCUtil.buildOracleSignatures (#4061) 2022-02-07 19:50:53 -06:00
rorp
48189d5c1d
Make CRUD.run and CRUD.runVec transactional (#4059)
* Make `CRUD.run` and `CRUD.runVec` transactional

* remove explicit `transactionally` calls
2022-02-07 17:42:48 -06:00
Chris Stewart
5aeecdb893
Reworking/refactoring acceptDLCOffer (#4048)
* Part 1 of reworking/refactoring acceptDLCOffer

* scalafmt

* WIP

* Move offer creation into initDLCForAccept

* Refactor method name to getDlcDbOfferDbAccountDb

* Push to github to force re-run of CI
2022-02-07 11:41:17 -06:00
Chris Stewart
49d4d7f179
2022 02 06 issue 4049 (#4056)
* WIP

* Make attestation creation transactional in the oracle
2022-02-06 19:07:32 -06:00
Chris Stewart
7f344ad3ff
2022 02 06 announcement creation logging (#4055)
* Add logs for creating announcements

* Add attestation logs

* scalafmt
2022-02-06 17:30:42 -06:00
Chris Stewart
590cd9c72e
2022 02 06 remoteclaimed refactor (#4054)
* Small refactors to make things more readable

* Add invariants to make sure things are defined when doing the RemoteClaimed flow

* Move where we update DLCDb state to RemoteClaimed so its atomic with the rest of the db updates

* Consoldiate uses of updatedDlcDb

* Add logs

* scalafmt
2022-02-06 16:31:13 -06:00
Chris Stewart
d213e9935d
Add better exception messages (#4053) 2022-02-06 11:14:58 -06:00
Chris Stewart
7a6f0430d6
2022 02 03 issue 4032 (#4042)
* get all dlcWalletTest/test passing

* Get dlcTest/test working with ignored test cases

* WIP

* Rework match oracleSignatures

* Refactor checkSingleContractInfoOracleSigs to use matchOracleSignatures

* Clean up checkOracleSignaturesAgainstContract for disjoint, still doesn't pass test cases

* Some DRY in numeric test cases

* Add test case for enum contracts

* Fix disjoint union contract bug

* Refactor matching of oracle announcements and oracle signatures into DLCUtil

* Fix compile on on 2.12.x

* Address parts of code review
2022-02-05 09:04:04 -06:00
benthecarman
142612f034
Make newConfigOfType use Vector[Config] (#4039) 2022-02-04 06:14:16 -06:00
benthecarman
afc6a32c62
Update lnd to v0.14.2 (#4040) 2022-02-04 06:11:25 -06:00
rorp
2066447cdc
Add isEndpoint to numeric contract descriptor serialization (#4033)
* Add isEndpoint to numeric contract descriptor serialization

* Fix compile

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-02-01 09:42:21 -06:00
rorp
546e030dde
[GUI] Fix 'First and last points must be endpoints' exception (#4029) 2022-01-31 14:55:28 -06:00
Chris Stewart
883b01006d
Fetch blockHeight earlier in TransactionProcessing.processBlock() (#4025) 2022-01-30 16:41:29 -06:00
Chris Stewart
8d04ca1cd3
2022 01 30 optimize processblock (#4024)
* Reduce allocations in parameters to processTransactionImpl parameters for Some

* Move cachedReceivedOptF map out of the hot path on processBlockCachedUtxos

* Move spentSpendingInfoDbs out of the hot path on processBlockCachedUtxos

* Cache all inputs in block earlier to avoid looping over them over and over

* Call correctly processTransactionImpl on accumulated wallet

* Fix compile
2022-01-30 15:53:55 -06:00
benthecarman
03abb7537b
Add basic esplora client (#4018)
* Add basic esplora client

* Improve error message
2022-01-28 15:48:44 -06:00
Chris Stewart
cf16d93648
Fix bug where we didn't set spendingTxId when transitioning from Reserved -> PendingConfirmationsSpent (#3909)
* Fix bug where we didn't set spendingTxId when transitioning from Reserved -> PendingConfirmationsSpent

* Try to add unit test

* WIP

* WIP2

* Get reserved state working

* Fix assertion, cleanup logs

* Cleanup test case
2022-01-28 06:50:24 -06:00
Chris Stewart
08941206fc
Bump timeout to 60 seconds (#4021) 2022-01-27 11:52:19 -06:00
Chris Stewart
71711ca582
Add invariant to make sure spendingTxId is different than the txid (#4019) 2022-01-27 09:52:12 -06:00
Chris Stewart
b918cf78b7
Fix bugs where we were building internally inconsistent SpendingInfoDb (#4016)
* Fix bugs where we were building internally inconsistent SpendingInfoDb

* Fix error message
2022-01-27 07:22:09 -06:00
Chris Stewart
bd5bcfef3a
2022 01 18 issue 3969 Add serialization_version to global_dlc_data (#3992)
* Get refactor working where we decouple CETSignatures and the partial refund signature

* WIP

* Implement migration to specify serialization_version on global_dlc_data table

* Fix migrations test

* WIP

* implement contractid computation

* Get migration working for wallet on testnet

* Add check to make sure we only try to migrate old wallets

* Refactor DLCDataManagement.getOfferAndAcceptWithoutSigs to not use DLCTxBuilder

* WIP

* Bubble up Option[] into DLCWallet, trivially assert on it and then use .get. We will have to do the refactor of DLCWallet sometime in the future

* Change global_dlc_data serializationVersion at database level to not have an Option

* Add DLCDbState, propogate it through the codebase

* Remove log

* Remove invariant for making sure all DLCs are defined on migraiton, add log for the case of issue 4001

* Add filter on ALPHA serialization DLCs. We dont need to migrate DLCs that are using the beta serialization

* Rebase onto 4004

* Refactor to use the refund signature in the accept/sign message

* Add output index to the return of DLCTxBuilder.buildFundingTransaction()

* Fix compile

* Remove log
2022-01-26 14:57:45 -06:00
Chris Stewart
98c5d816ac
2022 01 25 issue 4014 (#4015)
* Refactor testkit tests to use same nodeCallbacks that BitcoinSServerMain uses for neutrino

* Add test case

* Add logs for callbacks

* Cleanup

* Add test case for when funds are spent when we are offline

* Turn off logging again

* Cleanup more logs and comments
2022-01-26 13:16:15 -06:00
Chris Stewart
d983ad14f3
Fix contractid computation (#4012) 2022-01-26 05:30:29 -06:00