1
0
Fork 0
mirror of https://github.com/bitcoin-s/bitcoin-s.git synced 2025-03-21 14:32:37 +01:00
Commit graph

2455 commits

Author SHA1 Message Date
Ben Carman
e53317b409 Create initial BitcoindV20RpcClient () 2020-09-25 13:29:22 -05:00
Ben Carman
11e6b7d9eb Initial SigNet support () 2020-09-25 12:29:13 -05:00
Ben Carman
43db743660 docs: Calculate correct hashes in dlc doc () 2020-09-25 11:54:03 -05:00
Ben Carman
f19cba90d3 Bump user agent to new version () 2020-09-24 13:27:10 -05:00
Ben Carman
0b9f88e03d Fix HDPurpose Mapper for non standard values () 2020-09-24 06:33:20 -05:00
Ben Carman
a35b50a9f9 Add missing settings for native packager () 2020-09-23 17:02:40 -05:00
Ben Carman
f874eb5848 Put fee in funding error message () 2020-09-23 12:17:23 -05:00
Ben Carman
795d62c041 Change requesting filters log to use big endian hashes () 2020-09-23 12:02:34 -05:00
Ben Carman
1b57cac8ae trivial: Set timezone and print it in logs () 2020-09-22 14:03:42 -05:00
rorp
7d9f546bbb Increase the default db queue size () 2020-09-22 11:18:42 -05:00
Ben Carman
2458b36232 trivial: Change default logging level to info () 2020-09-22 07:31:18 -05:00
Ben Carman
1893c5446e Only log db config on startup () 2020-09-22 07:30:26 -05:00
Ben Carman
bdb80ba639 Only update txo confirmed state if there is a change () 2020-09-21 17:35:25 -05:00
Nadav Kohen
be7bd70805 Fixed PSBT.verifyFinalizedInput ()
* 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
27b467a50d Create v4 release for website () 2020-09-21 13:36:21 -05:00
Ben Carman
c59b3baf01 Create Cli function for reserving and unreserving utxos () 2020-09-21 12:37:15 -05:00
Ben Carman
21b269cf63 Have RawTxSigner use low R signing () 2020-09-21 11:30:15 -05:00
Ben Carman
3ec3b5d699 Merge pull request
* Add more processing blocks tests

* Add immature coinbase txo state

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

* Fix docs

* test travis config change
2020-09-19 14:09:12 -05:00
Scala Steward
975e8d0fda Update sbt-mdoc to 2.2.9 () 2020-09-18 17:01:51 -05:00
Chris Stewart
334b4d0965 2020 09 18 btchrp stringfactory ()
* 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
82b324f1aa Increase test coverage in WalletStorage () 2020-09-18 06:34:13 -05:00
Ben Carman
ae6bab857f Increase chain test code coverage even more () 2020-09-17 16:25:08 -05:00
Nadav Kohen
613f6ba4b9 Updated Bouncy Castle Schnorr implementation to most recent BIP 340 () 2020-09-16 17:01:30 -05:00
Ben Carman
16599010c7 Increase chain code coverage () 2020-09-16 16:24:25 -05:00
Ben Carman
db852e4ffb Increase code coverage in key manager () 2020-09-16 15:05:19 -05:00
Chris Stewart
841230e35c Handle the case where our block headers are synced already () 2020-09-16 11:45:57 -05:00
Scala Steward
c9e5aa9c3b Update sbt-bloop to 1.4.4 () 2020-09-15 07:51:10 -05:00
rorp
444bd680a9 OSX native libsecp256k1 ()
* 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
2ddde4e634 Update Website Deps () 2020-09-14 17:22:00 -05:00
Chris Stewart
857b33f31f Make ChainApi.getHeadersBetween() be inclusive on the 'from' parameter ()
* Make ChainApi.getHeadersBetween() be inclusive on the 'from' parameter

* Use ben's suggestion of comparing hashes
2020-09-12 11:13:03 -05:00
Chris Stewart
76b9577181 Introduce 'FilterSyncMarker' to ChainApi, make it clearier what exact… ()
* 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
4f02ee15db Make BlockHeader, BlockHeaderDb have better toStrings ()
* Make BlockHeader, BlockHeaderDb have better toStrings

* Address ben's code review
2020-09-11 13:46:26 -05:00
Chris Stewart
2980e3fc01 Resolve issues with reorgs and syncing filters ()
* 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
39ef35b9ee Rename parameter names from 'duration' -> 'interval' just like our ActorSystem.schedule() names the parameter () 2020-09-11 11:10:59 -05:00
Scala Steward
522d80ed2f Update sbt-mdoc to 2.2.8 () 2020-09-11 08:56:29 -05:00
Ben Carman
2806ac8a95 Throw errors that occurr in startup ()
* Throw errors that occurr in startup

* Add testing ability to runMain
2020-09-10 08:11:46 -05:00
Scala Steward
9bbf669867 Update slick, slick-hikaricp to 3.3.3 () 2020-09-10 06:47:55 -05:00
Scala Steward
15700b7ff1 Update scodec-bits to 1.1.20 () 2020-09-10 06:46:04 -05:00
Ben Carman
e2163c99ff Create FeeUnitFactory and functions to calculate tx fee rates ()
* Create FeeUnitFactory and functions to calculate tx fee rates

* Remove useless override, use factory

* doc

* Scaladocs + use vals

* Fix scaleFactor being set as default value
2020-09-10 06:45:25 -05:00
Scala Steward
74807e867b Update play-json to 2.9.1 () 2020-09-10 06:44:02 -05:00
Scala Steward
fb7212bcd2 Update sbt-mdoc to 2.2.7 () 2020-09-10 06:43:28 -05:00
Chris Stewart
00480cc391 Use randomized fee rates for wallet tests ()
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-09-09 16:46:33 -05:00
rorp
c62be8b5f6 Update callbacks for LN support ()
Update callbacks for LN support
2020-09-09 11:02:31 -07:00
Chris Stewart
4149271b77 Segregate mainnet chainhandler tests and regtest chainhandler tests () 2020-09-09 09:50:24 -05:00
Ben Carman
5f7356c526 Fix Two KeyManagers in scope for fundRawTransactionInternal ()
* Fix Two KeyManagers in scope for fundRawTransactionInternal

* Only fetch txs once
2020-09-09 09:40:38 -05:00
Ben Carman
4c0437e352 Optimize findClosestToTime ()
* Optimize findClosestToTime

* Fix Test

* Rename function, change execption type
2020-09-08 09:23:41 -05:00
Ben Carman
ee85f463f5 Fix RoutesSpec to assert results () 2020-09-07 15:52:23 -05:00
Ben Carman
edc80bf13e Don't spend immature coinbases, fix tests () 2020-09-07 15:08:41 -05:00
Ben Carman
279d64fafb Add chainHash to ChainParams ()
* Add chainHash to ChainParams

* Rename to genesisHash
2020-09-04 12:15:06 -05:00