Commit Graph

3503 Commits

Author SHA1 Message Date
Chris Stewart
21de609ed8
2022 01 22 cetsignatures refactor (#4004)
* Get refactor working where we decouple CETSignatures and the partial refund signature

* Add DLCAcceptWithCetSigs() for the case where we have a refund sig, but no cet signatures

* Fix bugs

* Fix sighash parsing bugs
2022-01-23 16:13:36 -06:00
Chris Stewart
7ee1f0f406
Implement batching of database calls for our chain callback (#4003) 2022-01-23 07:39:10 -06:00
benthecarman
42d6955f79
Filter dust from coin selection (#3866) 2022-01-21 13:15:12 -06:00
user411
3162c1b2d0
Ignore .DS_Store files when making backups (#4000) 2022-01-21 12:57:38 -06:00
rorp
f438ce2897
Refactor zipDatadir (#3999)
* Refactor zipDatadir

* cleanup
2022-01-21 10:03:53 -06:00
Scala Steward
13f5fb8dcb
Update javafx-base, javafx-controls, ... to 18-ea+10 (#3998) 2022-01-20 17:40:59 -06:00
Scala Steward
011fdc2cdb
Update akka-grpc-runtime_2.12, ... to 2.1.3 (#3997) 2022-01-20 17:40:43 -06:00
benthecarman
0079489a15
Create DbMapper for DoubleSha256Digest (#3995) 2022-01-19 15:00:08 -06:00
rorp
2dcbe73504
Update Tor version to 0.4.6.9 (#3993)
* Update Tor version to 0.4.6.9

* remove PluggableTransports
2022-01-19 14:58:13 -06:00
Scala Steward
635bc453e4
Update javafx-base, javafx-controls, ... to 18-ea+9 (#3960) 2022-01-18 12:35:26 -06:00
dependabot[bot]
8bc419ff88
Bump shelljs from 0.8.4 to 0.8.5 in /website (#3985)
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: shelljs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-18 12:31:14 -06:00
rorp
8a881b37f4
Add DLC callback for refunded DLC (#3989) 2022-01-18 12:29:19 -06:00
rorp
21c97bba12
Filter transactions for onTransactionProcessed (#3990) 2022-01-18 09:52:41 -06:00
Chris Stewart
ee0d62c5b8
2022 01 14 DLCDataManagement refactor (#3982)
* WIP

* Finish refactor, get unit tests working

* Remove log
2022-01-18 08:12:27 -06:00
Chris Stewart
214213b59d
2022 01 16 issue 3983 (#3987)
* Add test case

* Add check that the pubkey is valid in WitnessScriptPubKeyV1.isValidAsm()
2022-01-17 14:38:51 -06:00
Chris Stewart
2aa6f168eb
Implement rpc password in GUI (#3986) 2022-01-15 20:41:27 -06:00
Scala Steward
e520b492bb
Update slf4j-api to 1.7.33 (#3981) 2022-01-14 07:15:09 -06:00
rorp
d88e2494e0
Make RPC authentication optional for localhost (#3980) 2022-01-13 13:08:48 -06:00
Chris Stewart
44a66e72e5
Upgrade to Scala 2.13.8 (#3789)
* Upgrade to Scala 2.13.7

* Upgrade to Scala 2.13.8
2022-01-13 10:17:11 -06:00
Chris Stewart
2e49bedf7d
upgrade to scala-js 1.8.0 (#3979)
* upgrade to scala-js 1.8.0

* upgrade the scoverage plugin to 1.9.3
2022-01-13 09:07:55 -06:00
rorp
ee3ee53191
RPC password authentication (#3961)
* RPC password authentication

* fix compiler error

* add more unit tests

* change default behavior

* Cleanup and add unit test for sad path for rpc authentication

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-01-13 05:55:33 -06:00
benthecarman
5f4053b2e4
Create FallbackFeeRateApi (#3974)
* Create AggregateFeeRateApi

* Rename, add docs
2022-01-13 05:43:05 -06:00
Scala Steward
e095a1b225
Update sbt-bloop to 1.4.12 (#3977) 2022-01-13 05:40:45 -06:00
Chris Stewart
bf8b165fe9
Implement recovery for when we cannot receive a fee rate from a FeeRateApi (#3975)
* Implement recovery for when we cannot receive a fee rate from a FeeRateApi. Now we return -1 sats/vbyte if we cannot get the fee rate from a fee provider rather than throwing an internal server error

* Fix compile
2022-01-12 14:09:15 -06:00
Chris Stewart
e24efd65ae
2022 01 12 docker ws (#3976)
* Add port 19999 to bitcoin-s-server exposed ports, Add port 19999 to documentation

* Get docker containers working correctly with websockets

Co-authored-by: Ivan <erickson.ivan@gmail.com>
2022-01-12 14:07:11 -06:00
Chris Stewart
9dd126bb9f
Modify estimatefee endpoint to return a number rather than a string (#3973)
* Modify estimatefee endpoint to return a number rather than a string

* Fix compile

* Fix infinite loop on converting to sats/vb, add tests
2022-01-12 12:17:04 -06:00
Chris Stewart
66e23b61a8
2021 01 11 issue 3938 (#3971)
* WIP

* Remove blocking on Future that wont complete until the websocket is disconnected

* Add Sink.ignore to drain webscoket queue if no one is connected
2022-01-12 09:04:40 -06:00
Shreyansh
a58ef1cd02
Storing peers in database (#3773)
* rebase

* fix

* fix

* remove unwanted diffs

* fix

* formatting

* changes from comments

* Revert "changes from comments"

This reverts commit eb8a795718dc590802a19c7ce4cce4501bd2de1f.

* changes from comments

* add PeerManager

* add sha3-256

* add NetworkUtilTest

* formatting
2022-01-09 07:21:59 -06:00
Chris Stewart
93c5121632
2021 01 06 tlv invariants (#3965)
* Add invariant to CETSignaturesTLV so we don't have empty adaptor sigs

* Add invariant to make sure FundingSignaturesTLV witnesses are not empty

* Add invariant that contractOraclePairs aren't empty

* Add fundingInputs and ordered announcement invariants

* fix docs

* Move invaraints from TLVs to in memory data structures

* WIP

* WIP2

* Modify return type of DLCDataManagement.executorAndSetupFromDb() to return an Option. The None case represents when we have pruned CET signatures from the database

* Add some comments, clean up a bit

* more cleanup
2022-01-08 16:21:58 -06:00
benthecarman
3ba8fb6dd4
Allow creating invoices with description hash (#3966) 2022-01-07 09:56:40 -06:00
Chris Stewart
eeeecb00c5
Reduce polling log to trace when we try to poll bitcoind (#3964) 2022-01-06 09:24:35 -06:00
Chris Stewart
8857af2b66
Address ben's code review on #3854 (#3962)
* Address ben's code review

* Rename DLCSerializationVersion

* Scalafmt and bug fix'

* Fix docs
2022-01-05 08:49:23 -06:00
benthecarman
b342f373ae
Make ContractDescriptorTemplate an unsealed trait (#3963) 2022-01-05 08:49:11 -06:00
Chris Stewart
8c5288d758
Implemented general payout curves (#3854)
* Implemented general payout curves including hyperbola curve piece support

WIP

Get GUI compiling

* WIP

* Get backward compatible serialization working, everything is equivalent except for in memory Scala data structures

* Get numeric contracts backward compatible

* Get rest of codebase compiling

* Add test case for old contract info

* Add sanity test vector for old enum contract descriptors

* Fix docs

* Remove comment

* Scalafmt

* Add DLCSerializationVersion, replace isOldSerialization

* Remove ValueIterator.takeNoSkip()

* Fix docs

Co-authored-by: nkohen <nadavk25@gmail.com>
2022-01-05 07:07:22 -06:00
Chris Stewart
a7af8cac4c
Patch bug where zipdatadir doesn't work if the directory was not created (#3959)
* Patch bug where zipdatadir doesn't work if the directory was not created

* Remove uneeded Files.createFile()
2022-01-04 15:11:41 -06:00
rorp
5de325e7de
Exclude seeds from backup (#3950) 2022-01-04 09:04:14 -06:00
benthecarman
524c5212e0
Add MasterXPubTable to list of DLCOracle tables (#3955)
* Add MasterXPubTable to list of DLCOracle tables

* Allow clean to be called by outside libraries
2021-12-31 06:30:44 -06:00
Chris Stewart
d06b064b6b
2021 12 28 blockprocessed callback (#3946)
* WIP

* Get appServerTest passing with chain notifications

* Reorder where SourceQueue gets initialized so that we can use it to construct the wallet's callbacks

* DRY

* Fix missing callback for neutrino chaincallbacks

* Bump timeout

* Bump timeout

* When wallet is empty call doSync() with the last blockheader bitcoind has seen

* Revert skipping compact filters on IBD for bitcoind

* Revert logging
2021-12-30 13:41:17 -06:00
benthecarman
c3d1b2ee12
Give DLCOracle to filter events by pending/completed (#3953) 2021-12-30 06:33:16 -06:00
benthecarman
f4a2ec8554
Make AesEncryptedData a network element / factory (#3952) 2021-12-30 06:30:31 -06:00
Scala Steward
e61ff11619
Update junit-interface to 0.13.3 (#3951) 2021-12-30 06:29:44 -06:00
Chris Stewart
f8f8f50aae
Implement ping every 5 seconds to keep websocket connection alive (#3947) 2021-12-29 17:43:56 -06:00
Scala Steward
af250fcdd3
Update sbt to 1.6.1 (#3949) 2021-12-29 07:12:16 -06:00
Chris Stewart
7527388be5
2021 12 20 ws dlc callbacks (#3926)
* Implement DLC wallet callbacks

Add callbacks and tests for Claimed/RemoteClaimed

Add unit test for confirmed state

Propogate DLC callbacks over the websocket

* move buildDLCWalletCallbacks to WebsocketUtil
2021-12-28 10:24:51 -06:00
Scala Steward
bfee5f7e8d
Update sbt to 1.6.0 (#3945) 2021-12-27 15:42:47 -06:00
Scala Steward
62852a3d19
Update sbt-scalafmt to 2.4.6 (#3940) 2021-12-27 15:24:15 -06:00
Nadav Kohen
6652448f99
Added constructor for p2pkh for decompressed public keys (#3944) 2021-12-27 15:23:38 -06:00
Scala Steward
1ec444da00
Update scalamock to 5.2.0 (#3943) 2021-12-27 15:17:59 -06:00
benthecarman
7f9fb87a55
Call trim on peer address in Accept dialog (#3942) 2021-12-25 19:39:09 -06:00
Chris Stewart
50bec2abc6
2021 12 14 websockets (#3906)
* WIP

* Get basic websocket working (sort of)

* Push websocket fixes

* WIP: Implementing SpendingInfoDb json serializer

* Implement onreserved callbacks, add json serializers for SpendingInfoDb

* Get first unit test working for websockets when a address is generated

* Rework WalletNotification to have case classes, get unit test working for receiving addresses over the websocket

* WIP

* Add websocket callback for when a wallet processes a block

* Cleanup

* basic updates to unit test

* Fix compile

* Fix submodule

* Fix compile

* Get both unit tests passing when run by themselves

* Fix so both test cases can be run

* Implement unit tests for blockpressed and reservedutxos websockets

* Fix RoutesSpec get a block header test

* Implement configuration for wsbind and wsport via bitcoin-s.conf

* Add some nonblocking sleeps on all WebsocketTests

* Add documentation

* Properly close the server with .terminate() rather than .unbind()

* Add BitcoinSServerMainBitcoindFixture.afterAll()

* Add println

* Add more println

* Try to downgrade bitcoind version

* Fix datadir bug

* Cleanup callbacks so they don't have nested futures

* Fix SpendingInfoDb.apply() pattern match

* Add spendingInfoDb json serializer test, does not pass

* Fix SpendingInfoDb json serializer

* Make small refactors

* Fix compile

* Add maxBufferSize, change overflow strategy to OverflowStrategy.dropHead

* Address Nadav's code review

* Address ben's code review
2021-12-25 11:11:04 -06:00