Commit graph

1935 commits

Author SHA1 Message Date
Scala Steward
06fe2f94db
Update scalacheck-1-14 to 3.1.1.0 (#1143) 2020-02-21 07:03:38 -06:00
Scala Steward
3ef5ad5f78
Update flyway-core to 6.2.4 (#1141) 2020-02-20 09:50:10 -06:00
Chris Stewart
41e1564d29
Bump 'downloadBitcoind' timeout (#1136) 2020-02-19 09:48:45 -06:00
Nadav Kohen
d215680e74
Got rid of warning messages! (#1133)
* Got rid of warning messages!

* Reverted collection conversion changes because scala 2.11 is dumb
2020-02-19 08:02:33 -06:00
Chris Stewart
fa0e0d1470
Add section to contributing.md for when travis ci won't run for new contributors (#1135) 2020-02-19 06:51:28 -06:00
Scala Steward
ba7d589ea8
Update flyway-sbt to 6.2.3 (#1130) 2020-02-17 13:45:08 -06:00
Chris Stewart
3bf59902ba
Move binaries to be stored inside of the HOME/.bitcoin-s/binaries instead of usrdir/binaries. This makes it so different projects that use bitcoin-s can re-use binaries instead of having to download them for every project (#1128) 2020-02-17 12:07:04 -06:00
Chris Stewart
ba2cdedb4b
Address issue 916. In our chain project fixtures we did not make sure that tables were fully created before trying to insert information into tables in futures. This causes race conditions on slow CI machines that are fixed now because we call 'makeChainHandler()' inside of the setupTableF flatMap (#1129) 2020-02-17 12:06:33 -06:00
Ben Carman
24fcf8c0c1
Reserved TxoState (#1111)
* Reserved TxoState

* Allow fund transaction handling to mark utxos as Reserved

* Add test, fix overloading default arg issue
2020-02-13 06:51:50 -06:00
Ben Carman
dad1fb746c
Descriptor fixes and test (#1116) 2020-02-13 06:48:15 -06:00
rorp
d4f3e184ef
Use java.time.Instant to represent timestamps in EclairApi (#1118) 2020-02-13 06:47:20 -06:00
Ben Carman
5c77d549ac
Scalafmt Fix (#1117) 2020-02-12 14:22:55 -06:00
rorp
00feee8501
Support for Eclair 0.3.3 (#1097) 2020-02-12 11:30:31 -08:00
Nadav Kohen
a6e21fe43b
Multiple Logger Fix (#1086)
* An attempt to fix logging to file using MDC

* Responded to review
2020-02-11 11:35:28 -06:00
Nadav Kohen
30f5850860
Added server handling for empty account tables while a seed exists (#1094)
* Added server handling for empty account tables while a seed exists

* Add test coverage to key-manager

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2020-02-09 11:14:53 -06:00
Scala Steward
1a445b4463
Update flyway-sbt to 6.2.2 (#1107) 2020-02-09 10:47:56 -06:00
Scala Steward
ed9200dbd5
Update sbt-ci-release to 1.5.2 (#1106) 2020-02-09 10:47:24 -06:00
Scala Steward
494094be2b
Update jeromq to 0.5.2 (#1087) 2020-02-07 10:10:32 -06:00
Chris Stewart
b50f818519
Create migration to drop confirmations column from txo_spending_info … (#1099)
* Create migration to drop confirmations column from txo_spending_info table in the wallet database, also fix a long standing issue in BitcoinSFixture where failure cases in the testing suite were not being handled properly

* Fix scala 2.11.12 compile issue
2020-02-07 07:45:15 -06:00
Scala Steward
ef06dc85c1
Update sourcecode to 0.2.1 (#1103) 2020-02-07 07:38:05 -06:00
Scala Steward
4e26bc4b76
Update flyway-core to 6.2.2 (#1102) 2020-02-07 07:36:48 -06:00
Chris Stewart
c363156d8b
Add codehause dependecy as a work around for issue 1110, there is a i… (#1101)
* Add codehause dependecy as a work around for issue 1110, there is a issue in graalvm native image generator where images aren't being generated correctly. THis is related to the logback dependecy

* Add some comments about when the extra dep can be removed
2020-02-07 06:52:31 -06:00
Scala Steward
9ef53b4c96
Update sbt to 1.3.8 (#1096) 2020-02-07 06:38:13 -06:00
rorp
7fbc6423a5
Fix sync issues (#1090) 2020-02-04 10:16:16 -06:00
Nadav Kohen
61dfa35d1e
Console CLI (#1095)
* Moved Cli code to an object called ConsoleCli which can be called from sbt console

* Add --allow-incomplete-classpath to cli.sbt

Co-authored-by: Ben Carman <benthecarman@live.com>
2020-02-04 08:05:38 -06:00
Chris Stewart
c30683100c
Add dependency graph plugin (#1089) 2020-02-02 09:56:31 -06:00
Chris Stewart
569bafca96
Revert flyway plugin version (#1084) 2020-01-31 11:27:13 -06:00
Scala Steward
45d45cecda
Update sbt-unidoc to 0.4.3 (#1079) 2020-01-31 13:08:24 +01:00
Scala Steward
ae02d609e3
Update flyway-core to 6.2.1 (#1082) 2020-01-31 13:07:54 +01:00
Ben Carman
836d4fbad0
CLI Commands for PSBTs (#1074)
CLI Commands for PSBTs
2020-01-30 14:50:08 -06:00
Chris Stewart
372a19e9ff
Attempt to keep GCSTest for timing out on CI (#1075)
* Attempt to keep GCSTest for timing out on CI

* Move more stuff out of generator loop
2020-01-29 20:51:39 +01:00
Ben Carman
c568e72a02
Increase code coverage 2020-01-29 12:01:09 -06:00
Ben Carman
a13feef57a
Simplify txReads 2020-01-28 22:13:50 -06:00
Scala Steward
94ae919a00 Update akka-actor, akka-stream, ... to 2.5.29 (#1077) 2020-01-28 18:42:20 +01:00
Ben Carman
5692a7da77
Replace null values with EmptyTransaction and PSBT.empty 2020-01-28 10:37:16 -06:00
Scala Steward
ec543bbbf7 Update akka-actor, akka-stream, ... to 2.5.28 (#1072) 2020-01-28 06:16:02 -06:00
Ben Carman
5f1716b630
CLI Commands for PSBTs 2020-01-28 00:06:15 -06:00
rorp
8f70996f65
LnInvoice must ignore unknown LN tag fields (#1068) 2020-01-27 08:48:49 -08:00
Ben Carman
a8a17d8793 Example config on in documentation (#1069) 2020-01-27 07:04:53 -06:00
Scala Steward
b8b4b4a817 Update flyway-sbt to 6.2.0 (#1070) 2020-01-27 07:03:37 -06:00
rorp
d84c926aca Fix the order of LN tag fields in serialized invoces (#1066) 2020-01-23 15:13:29 -06:00
Chris Stewart
754aa77617
Run test:scalafmt, and enforce it on CI (#1023)
* Run test:scalafmt, and enforce it on CI

* Run test:scalafmt
2020-01-23 14:46:57 -06:00
Ben Carman
c968e79c80 CLI command for filter and filter header counts (#1063) 2020-01-23 14:45:33 -06:00
Chris Stewart
7045fdb099
Add peers section to the example configuration (#1065) 2020-01-23 14:45:18 -06:00
Scala Steward
96b1515086 Update flyway-core to 6.2.0 (#1062) 2020-01-23 13:59:50 -06:00
Chris Stewart
ea555c5705
If migrations fail, attempt to baseline the database and apply migrations again (#1058) 2020-01-23 13:28:50 -06:00
Nadav Kohen
d858df743d
PSBT Support (#1031)
* PSBT Serialization/Deserialization (#917)

* PSBT Serialization and Deserialization

* Remove debug code

* Create PSBTParseResult, Add more psbt test cases, and various small nits

* PSBT version checking

* Remove PSBTHelper, give PSBTRecord and PSBTMap a fromBytes

* Fix compile issue, preserve ADT

* PSBT Combiner

* PSBT Updater

* Fix PSBT version number to be read as little endian

* Make function names more clear, add scaladoc, require not finalized

* Combiner scaladocs

* Test case from BIP

* Make compatible with older versions

* PSBT: Fix for EmptyWitness changes (#968)

* PSBTInputMap to UTXOSigningInfo

* Remove vars

* Add missing param

* Fix byteVectorOrdering for when x == y

* getUTXOSpendingInfo Tests

* Fix formatting errors

* Give conditional path default value

* formatting fix

* Fixed InputPSBTRecord.FinalizedScriptSig using asmBytes (#1004)

* Fixed PSBTTest after rebasing onto master

* PSBT Constructors and Extraction (#997)

* Added PSBT constructors

* Revived option to use signers in toUTXOSpendingInfo

* Added transaction extraction

* Responded to code review

* Added extraction test from BIP

* Added validation (option) to PSBT extraction

* Added property based test for PSBT.extractTransactionAndValidate

* Marked PSBT as new code for PropertyCheckConfiguration

* PSBT Finalizer (#1002)

* Added finalizing functionality to PSBTs

* Cleaned things up

* Added finalizer test, fails

* Check that PSBT is not already finalized when finalizing PSBT

* Added P2PKWithTimeout cases

* Formatting fix

* PSBT Generators (#1019)

* Introduced non-finalized constructor

* Added property based test comparing finalized and un-finalized construction, it currently fails due to EmptyScriptPubKey not being supported in various ways. Also fixed a ton of bugs!

* Fixed easy bugs relating to EmptyScriptPubKey, one is left

* Fixed the last bugs (multisig order and 0-of-n stuff) and now tests pass!

* Separated out direct finalized PSBT construction from non-finalized PSBT construction

* Translated construction work in tests into PSBT generators

* Added serialization symmetry test

* Made PSBT fee generation dependent on other generators to ensure low enough fees for signing

* Responded to code review

* Added scaladocs

* Fixed arbitraryPSBT to work with older scala versions

* Fixed PSBT compilation breakages from rebase

* Fixed test breakages from rebase

* Validate the PSBT unknown is not a known field

* Increase code coverage on PSBT tests

* Address review

* formatting

* Add error messages, rename function

* Psbt Signer (#1025)

* PSBT Signer

* Create addSignature function for PSBTs

* Use PartialSignature instead of Tuple

* Create extra util functions

* scaladoc and simplify case

* Formatting fix for psbt scaladocs

* Clean up code, add error messages, and scaladoc

* add type hints

* Change InputPSBTMap.fromUTXOSpendingInfo to use BitcoinSingleSigner

* optimize import

* Define separator byte for psbt map

* getRecords simplification

* remove braces, add error message

* PSBT stuff assigned to nkohen (#1035)

* Responded to psbt review assigned to me

* Moved separatorByte to a place where all can use it

* PSBT independent record calls (#1037)

* PSBT independent record calls

* move logic to super class

Co-authored-by: Nadav Kohen <nadavk25@gmail.com>

* Reworked PSBT finalization to return a Try[PSBT] rather than an Option[PSBT] (#1036)

* PSBT signer property based tests (#1038)

* PSBT property based tests

* Address review

* PSBT Combiner property based tests (#1039)

* PSBT Combiner property based tests

* Create pruneGlobal util function

* Switch to arbitrary gen

* Use BaseTransaction instead of Transaction

* Fix transaction witness to work from base transactions

* PSBTs response to Chris's review (#1046)

* PSBT chris's review

* Rename val, give master fingerprint a val

* Formatting fix

* Responded to code review from chris assigned to nkohen

* Split PSBT.scala into many files

* PSBT Docs (#1048)

* PSBT docs

* Fix compiler error, remove nesting

* PSBT output updater tests

* Validate psbt outputs

* Clean up code

* Remove P2WPKHWitnessV0 addition

* format

* PSBT Updater property based tests

* Move code to match block

* EmptyScriptWitness check

* Address nadav review

* Remove unnecessary code, make utxo adder better

* Move require and add error message

* Move require

* PSBT unit tests by Ben

* Change to EmptyScriptPubKey

* Added unit tests to increase code coverage

* responded to review

* Move PSBT unit test to separate file

* Make unknown generator only generate distinct records

* Use groupBy key instead of distinct

* use only first element

* Combine distinctness by key

Co-authored-by: Ben Carman <benthecarman@live.com>
2020-01-23 11:36:42 -07:00
Ben Carman
8941ea02cc Bech32 weakness test vectors (#1056)
* Bech32 weakness test vectors

* bech32 weakness test for ln invoices
2020-01-23 08:53:32 -06:00
Chris Stewart
f263f5c2a0
Add build config to skip publishing the new db-commons-test library (#1057) 2020-01-23 07:00:30 -06:00
Ben Carman
c4ade3ba3c Txo state flyway (#1052)
* Add flyway migrations

* Make different project's migrations independent of each other

* Rework all AppConfig.initialize() to use migrations rather than what we were doing before

* TXO State migration

* Move to new file, drop old column

* Add block hash column

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2020-01-22 15:34:36 -06:00