Commit graph

2478 commits

Author SHA1 Message Date
Ben Carman
28ed8db9a5
Move DLC Oracle module to master (#2083) 2020-09-29 19:48:02 -05:00
Scala Steward
2abe5dff25
Update javafx-base, javafx-controls, ... to 16-ea+2 (#2038) 2020-09-29 18:24:45 -05:00
Ben Carman
d158f4fcb0
Calculate HRP from network param instead of the inverse (#2079)
* Calculate HRP from network param instead of the inverse

* make hrp lazy

* Fix imports
2020-09-29 17:00:46 -05:00
Scala Steward
c2bf6dc431
Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.9 (#1993)
* Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.9

* Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.9
2020-09-29 09:20:53 -05:00
Ben Carman
c2315082d8
Create ExtPrivateKeyHardened (#2073) 2020-09-29 06:35:41 -05:00
rorp
dd272a8d8e
systemd script (#2074) 2020-09-29 05:59:42 -05:00
Ben Carman
d2f08fd226
Add network specific icons for bitcoin-s (#2067) 2020-09-28 14:51:03 -05:00
Ben Carman
206c5a93d0
Bitcoind v0.20 updated rpcs & tests (#2061)
* Bitcoind v0.20 updated rpcs & tests

* Test sorted multi
2020-09-28 14:25:28 -05:00
Ben Carman
c857f5e6c7
Change versions in readme (#2065) 2020-09-27 08:16:59 -05:00
Ben Carman
b59a17def0
Add ability to fully spend utxos (#2063)
* Let RawTxSigner dummy sign transactions

* Add ability to fully spend utxos

* Fix NeutrinoNodeWithWalletTest

* Fix test, simplify call
2020-09-27 08:16:26 -05:00
Ben Carman
0b100383f3
Create initial BitcoindV20RpcClient (#2060) 2020-09-25 13:29:22 -05:00
Ben Carman
856f88f0dd
Initial SigNet support (#2057) 2020-09-25 12:29:13 -05:00
Ben Carman
40db826ffc
docs: Calculate correct hashes in dlc doc (#2059) 2020-09-25 11:54:03 -05:00
Ben Carman
61c1b91611
Bump user agent to new version (#2055) 2020-09-24 13:27:10 -05:00
Ben Carman
ce9ebe57e2
Fix HDPurpose Mapper for non standard values (#2054) 2020-09-24 06:33:20 -05:00
Ben Carman
a91adf1dc9
Add missing settings for native packager (#2053) 2020-09-23 17:02:40 -05:00
Ben Carman
d5a1c8f39b
Put fee in funding error message (#2050) 2020-09-23 12:17:23 -05:00
Ben Carman
52ef7d6980
Change requesting filters log to use big endian hashes (#2048) 2020-09-23 12:02:34 -05:00
Ben Carman
d41369fc27
trivial: Set timezone and print it in logs (#2046) 2020-09-22 14:03:42 -05:00
rorp
e247113f15
Increase the default db queue size (#2047) 2020-09-22 11:18:42 -05:00
Ben Carman
145c1d2c74
trivial: Change default logging level to info (#2043) 2020-09-22 07:31:18 -05:00
Ben Carman
6545c04f62
Only log db config on startup (#2044) 2020-09-22 07:30:26 -05:00
Ben Carman
6c724a5920
Only update txo confirmed state if there is a change (#2041) 2020-09-21 17:35:25 -05:00
Nadav Kohen
cc3d5ea639
Fixed PSBT.verifyFinalizedInput (#2040)
* Fixed PSBT.verifyFinalizedInput to allow NonWitnessUTXO to be set with a WitnessUTXO

* Added unit test

* Fixed bug where verifyFinalizedInput was also broken for P2SH(Segwit)
2020-09-21 17:01:27 -05:00
Ben Carman
965f67c6ae
Create v4 release for website (#2015) 2020-09-21 13:36:21 -05:00
Ben Carman
fb7335d758
Create Cli function for reserving and unreserving utxos (#2035) 2020-09-21 12:37:15 -05:00
Ben Carman
7c4822f67a
Have RawTxSigner use low R signing (#1722) 2020-09-21 11:30:15 -05:00
Ben Carman
36b45790cf
Merge pull request #2029
* Add more processing blocks tests

* Add immature coinbase txo state

* Test balance, add doc
2020-09-20 10:39:31 -05:00
Ben Carman
8361ff6e08
Merge pull request #2019
* Refactor logging to only use grizzled slf4j

* Fix docs

* test travis config change
2020-09-19 14:09:12 -05:00
Scala Steward
94c1903501
Update sbt-mdoc to 2.2.9 (#2033) 2020-09-18 17:01:51 -05:00
Chris Stewart
98cb6f78c7
2020 09 18 btchrp stringfactory (#2031)
* Implement StringFactory on the companion object for BtcHumanReadablePart

* Make Bech32.checkHrpvalidity() take in a string rather than a Bech32HumanReadablePart as a parameter, now we check validity _just_ according to the bech32 standard, not specific applications light lightning / bitcoin

* Add missing override

* Overload Bech32.checkHrpValidity() to pass in a 'StringFactory' in cases where you know what HRP you expect

* Do nadav's suggestion on Bech32.splitToHrpAndData() -- allow a factory to be passed in parameterized with the type you expect
2020-09-18 13:45:32 -05:00
Ben Carman
293eb242c1
Increase test coverage in WalletStorage (#2030) 2020-09-18 06:34:13 -05:00
Ben Carman
5df27a4395
Increase chain test code coverage even more (#2028) 2020-09-17 16:25:08 -05:00
Nadav Kohen
d798353813
Updated Bouncy Castle Schnorr implementation to most recent BIP 340 (#2025) 2020-09-16 17:01:30 -05:00
Ben Carman
314afbd538
Increase chain code coverage (#2023) 2020-09-16 16:24:25 -05:00
Ben Carman
efc8e7213a
Increase code coverage in key manager (#2024) 2020-09-16 15:05:19 -05:00
Chris Stewart
d0abc19ef5
Handle the case where our block headers are synced already (#2021) 2020-09-16 11:45:57 -05:00
Scala Steward
89fe847dbb
Update sbt-bloop to 1.4.4 (#1954) 2020-09-15 07:51:10 -05:00
rorp
23a8b1fbbd
OSX native libsecp256k1 (#2014)
* OSX native libsecp256k1

* Add core and crypto tests to mac matrix

Co-authored-by: Ben Carman <benthecarman@live.com>
2020-09-14 17:45:55 -05:00
Ben Carman
603e3db93f
Update Website Deps (#2011) 2020-09-14 17:22:00 -05:00
Chris Stewart
2f6ff1d955
Make ChainApi.getHeadersBetween() be inclusive on the 'from' parameter (#2009)
* Make ChainApi.getHeadersBetween() be inclusive on the 'from' parameter

* Use ben's suggestion of comparing hashes
2020-09-12 11:13:03 -05:00
Ben Carman
d819dd0322
trivial: add trivial phase to travis (#2008)
* trivial: add trivial phase to travis

* trivial: fix
2020-09-11 13:53:16 -05:00
Chris Stewart
449e205b8b
Introduce 'FilterSyncMarker' to ChainApi, make it clearier what exact… (#2003)
* Introduce 'FilterSyncMarker' to ChainApi, make it clearier what exactly the (Int,DoubleSha256Digest) tuple is returned from ChainApi.nextBlockHeaderRange()

* Fix doc

* Add scaladoc to FilterSyncMarker

* Rebase onto master, fix conflicts to use FilterSyncMarker
2020-09-11 13:48:40 -05:00
Chris Stewart
72cfd4bd4c
Make BlockHeader, BlockHeaderDb have better toStrings (#2007)
* Make BlockHeader, BlockHeaderDb have better toStrings

* Address ben's code review
2020-09-11 13:46:26 -05:00
Chris Stewart
7b4b4a290f
Resolve issues with reorgs and syncing filters (#1969)
* Pull over test cases, WIP

* Rework ChainHandler.nextBlockHeaderRange() to use hashes rather than heights to very integrity of header chain, add test case

* Modify test case to make sure we are generating the 'heaviest chain work' header as first in the tuple that is used in reorg test cases

* Refactor to helper method called 'findNextHeader()' to make things simpler

* Add scaladoc to ChainHandler.findNextHeader()

* WIP

* Fix bugs in ChainApi.nextBlockHeaderRange(), now return (startHeight,stopHash) rather than (stopHeight,stopHash)

* Get chain handler tests passing, remove genesis filter header/fitler from default chain project fixture, make it a specialized one to have genesis filter header/filter in the database. Use that specialized fixture in ChainHandlerTest for now

* FilterSync work without having the genesis filter and filter header inserted into the database

* fix bug in DataMessageHandler where we were using sendNextGetCompactFilterHeadersCommand rather than using peerMsgSender.sendGetCompactFilterHeadersMessage

* Refactor ChainHandler.findNextHeader() to centralize where chains are fetched

* Address ben's code review
2020-09-11 12:41:25 -05:00
Chris Stewart
3e86438327
Rename parameter names from 'duration' -> 'interval' just like our ActorSystem.schedule() names the parameter (#2005) 2020-09-11 11:10:59 -05:00
Scala Steward
79ca91029c
Update sbt-mdoc to 2.2.8 (#2001) 2020-09-11 08:56:29 -05:00
Ben Carman
e353d2181f
Throw errors that occurr in startup (#1950)
* Throw errors that occurr in startup

* Add testing ability to runMain
2020-09-10 08:11:46 -05:00
Scala Steward
47fb9e0530
Update slick, slick-hikaricp to 3.3.3 (#1987) 2020-09-10 06:47:55 -05:00
Scala Steward
4343a4b4de
Update scodec-bits to 1.1.20 (#1960) 2020-09-10 06:46:04 -05:00