Commit Graph

3279 Commits

Author SHA1 Message Date
Chris Stewart
174c511cd3
2021 12 12 wallet optimization (#3897)
* Add logs for receiving/spending utxos in a block, modify code to use sql query

* Fix bug on join

* Turn off logging
2021-12-12 16:02:31 -06:00
rorp
41585a18ca
Make Bitcoin Core RPC backend to retry on Error -28: Verifying blocks (#3896) 2021-12-12 15:46:22 -06:00
Chris Stewart
d060c1c5fa
Use bigendian txids in wallet log messages (#3893) 2021-12-10 12:03:25 -06:00
Scala Steward
52ca1d8644
Update sbt to 1.5.6 (#3892) 2021-12-10 10:46:01 -06:00
Scala Steward
38a1551bf8
Update metrics-core to 4.2.5 (#3889) 2021-12-09 09:15:55 -06:00
Chris Stewart
a38309bed1
Add range of block heights to the error message (#3886) 2021-12-09 09:01:01 -06:00
Chris Stewart
0d37c4b54f
2021 12 08 block parsing bug caused by 65 byte taproot signatures (#3887)
* Add block  0000000000000000000593310d3b0cdc082af49f38b8a1611239072aef8433a8 test vector

* Add test cases

* wip

* Fix bug where we were classifying taproot txs as P2WPKHWitnessV0

* revert logging level

* Some cleanup

* Add logback.xml for scripts, remove scheduler in scan bitcoind

* Fix imports

* Take ben's suggestion and add check to CryptoUtil.isValidPubKey
2021-12-09 06:38:25 -06:00
benthecarman
cb704da927
Add clightning sendcustommsg (#3883) 2021-12-08 10:13:20 -06:00
benthecarman
afb51228b4
Add NodeId to DbCommonsColumnMappers (#3880) 2021-12-07 17:17:30 -06:00
Chris Stewart
085b8b1910
Implement CRUDAction.deleteAction() (#3877) 2021-12-06 07:19:31 -06:00
Chris Stewart
6e7af37ca0
2021 12 03 installer rename (#3876)
* Rename installers to try and make it more obvious waht they are

* Try super short names

* Fix missing update to error message on CRUDAction.update()

* Remove special branch

* Update submodule
2021-12-04 06:10:08 -06:00
Chris Stewart
2d5732375f
Add CRUDAction.{updateAllAction, updateAction} (#3872)
* Add CRUDAction.{updateAllAction, updateAction}

* Move updateDLCOracleSigs into DLCActionBuilder and make it an action

* Update DLCTransactionProcessing.calculateAndSetOutcome() to use actions
2021-12-04 05:29:51 -06:00
Nadav Kohen
9c9a0a618f
Update secp256k1-zkp (#3856)
* Added mac m1 binaries

* Added windows binaries

* Added linux binaries

* Updated secp256k1-zkp subdirectory

* Linux ARM binaries

* OSX 64 binaries

Co-authored-by: rorp <rorp@users.noreply.github.com>
2021-12-03 09:49:07 -06:00
Chris Stewart
d393848cc2
2021 11 30 issue 3847 (#3862)
* Start pulling over accept serializers from dlc message spec PR

* Get sign tlv json serialization working

* Implement decodeaccept,decodesign in CoreRoutes

* Move messages to DLCTestUtil, add documentation
2021-12-01 13:30:18 -06:00
benthecarman
169222a306
Add default proxy params (#3863) 2021-12-01 12:28:59 -06:00
Scala Steward
b2bf190dce
Update bcprov-jdk15on to 1.70 (#3861) 2021-12-01 06:55:18 -06:00
benthecarman
f54ed98c74
Add subscribe invoices function to lnd (#3860) 2021-12-01 06:53:33 -06:00
benthecarman
7933c90741
Update c-lightning to v0.10.2 (#3857) 2021-11-30 13:07:58 -06:00
Scala Steward
d0db9ba633
Update scodec-bits to 1.1.30 (#3855) 2021-11-30 12:51:47 -06:00
Chris Stewart
f71d3567ed
2021 11 23 crud action (#3851)
* WIP

* Finish implementing {CRUD,CRUDAction}.createAllAction()

* Try to make database inserts more atomic

* Consolidate more database calls in DLCWallet.initDLCForAccept()

* WIP2

* More refactor and using actions

* Add DLCIdDaoUtilNoPK for querying when dlcId is not a primary key

* Add DLCDataManagement.deleteDLC()

* make DLCWalletApi.createDLCOffer() use actions

* Rework DLCWallet.createNewDLCAccept() to use DBIOAction

* Use actions in DLCWallet.registerDLCAccept() a bit

* Create DLCActionBuilder, move actions to there

* Move more actions into ActionBuilder

* Implement transactionally on database writes for actions
2021-11-30 12:38:55 -06:00
Chris Stewart
8765c2f845
Disjoint union dlc (#3839)
* Implemented Disjoint Union DLC related data structures with dlcTest passing

Broke DLCClientTest up into multiple test files

Optimized DLC execution unit tests by checking all outcomes on a single setup DLC

Refactored DLCTest to allow for Disjoint Union DLC construction and validation, added tests

Responded to review

Fixed after cherry-pick

Fixed docs

* Fixed things after rebase

* Rebase

* Fix json serializer

* Finish fixing compile

* Start trying to make APIs better for multi oracle contract infos

* Clean things up in the GUI, try to make failures on disjoint union contracts as explicit as possible

* Use less numDigits as optimization for non secp CI test cases

* Fix compile

* Refactor BroadcastDLCDialog

* Fix test case optimization

* Clean up comment

Co-authored-by: nkohen <nadavk25@gmail.com>
2021-11-29 19:26:00 -06:00
benthecarman
cd3006c020
Verify binary download hashes (#3849)
* Update lnd to v0.14.1

* Verify binary download sha256 sums
2021-11-27 11:51:34 -06:00
benthecarman
09f0ac4657
Update lnd to v0.14.1 (#3848) 2021-11-27 11:49:29 -06:00
Chris Stewart
019c9b2644
Fix log message failure in DLCDataHandler (#3845) 2021-11-23 05:52:44 -06:00
benthecarman
90e01d7fc6
Fix broadcasting witness vs legacy txs (#3841)
* Fix broadcasting witness vs legacy txs

* Fix version test
2021-11-22 07:25:58 -06:00
benthecarman
155301fc1d
Allow lnd remote to work with certificate string (#3840) 2021-11-20 18:59:46 -06:00
rorp
41cb26a3bb
Make DLC node's external IP configurable (#3838)
* Make DLC node's external IP configurable

* docs

* some more changes
2021-11-19 14:51:23 -06:00
rorp
a6898defe2
Support for Bitcoin Core v22 (#3834)
* Support for Bitcoin Core v22

* respond to the PR comments
2021-11-19 13:58:27 -06:00
Scala Steward
ea6ac56fd5
Update sbt-native-packager to 1.9.7 (#3833) 2021-11-19 06:57:45 -06:00
benthecarman
9701769125
Handle TypeIdentifier.MsgWitnessTx messages (#3836) 2021-11-19 06:56:53 -06:00
benthecarman
079fa62073
Lnd v0.14.0 (#3835) 2021-11-19 06:55:56 -06:00
benthecarman
422aea2242
Fix TypeIdentifier fromBytes (#3832) 2021-11-17 06:26:07 -06:00
rorp
0b9500f4f2
Add hex fields to decodecontractinfo JSON response (#3830) 2021-11-16 13:21:24 -06:00
benthecarman
fc09f41db2
Request witness versions of transactions from nodes (#3829) 2021-11-16 13:17:54 -06:00
Chris Stewart
1d7529236f
2021 11 13 scan bitcoind witspkv1 mempool (#3825)
* Add script to count witness spk v1 txs

* more fixes and information

* Clean up
2021-11-16 13:06:51 -06:00
user411
856e455be3
Remove 'not set' rate of return % sign on wallet (#3828) 2021-11-16 13:06:36 -06:00
Chris Stewart
ba88fb1a03
2021 11 12 fix multiple tag issue (#3822)
* WIP

* Add test case to make sure we can tag an address multiple times

* Actually assert the tagnames/addresses
2021-11-12 15:57:39 -06:00
Chris Stewart
5189b6ad5c
revert logging directives on request/response back to DEBUG (#3819) 2021-11-12 10:39:14 -06:00
Chris Stewart
a40ef1ab21
Break existing api to get new address to remove the requirement for null label (#3818) 2021-11-12 09:58:50 -06:00
Chris Stewart
b3d61bc793
Add deleting address tags to to clearAllUtxosAndAddresses() (#3817)
* Add deleting address tags to to clearAllUtxosAndAddresses()

* assert address tag return is empty
2021-11-12 08:53:55 -06:00
Scala Steward
65ab6206b3
Update logback-classic to 1.2.7 (#3815) 2021-11-12 08:15:37 -06:00
Chris Stewart
31e8324522
Make sure exception is caught by Future inside of UtxoHandling.unmarkUTXOsAsReserved() (#3816) 2021-11-11 15:22:45 -06:00
Scala Steward
31ce7cbd77
Update akka-grpc-runtime_2.12, ... to 2.1.1 (#3809) 2021-11-11 12:26:11 -06:00
benthecarman
0b3654f020
Remove scientific notation from Bitcoins.toString() (#3811) 2021-11-10 12:55:44 -06:00
Scala Steward
86bd52d7f2
Update scala-collection-compat to 2.6.0 (#3807) 2021-11-09 05:47:25 -06:00
Nadav Kohen
09c2562675
Added WitnessScriptPubKeyV1 for sending to Taproot addresses (#3737)
* Added WitnessScriptPubKeyV1 for sending to taproot addresses

* Add basic serialization test case

* Add basic unit tests around constructing a WitnessScriptPubKeyV1

* Add a generator for witSPKV1

* Add override

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-11-05 12:35:52 -05:00
rorp
21fab4ee70
Improve app server validation error handling (#3796) 2021-11-05 10:03:16 -05:00
benthecarman
cd5451adaa
Add clightning listtransactions func (#3797) 2021-11-05 08:31:24 -05:00
Chris Stewart
aa748c012f
2021 11 03 protocol version (#3793)
* ProtocolVersion WIP

* Start incorporating protocol version into DLC Offer

* Fix doc
2021-11-03 15:13:19 -05:00
Chris Stewart
18726c10bb
Move ValueIterator out of TLVFactory trait (#3794) 2021-11-03 12:13:44 -05:00