Commit graph

1776 commits

Author SHA1 Message Date
Chris Stewart
c30efd4919 Add testkit md (#1234)
* Add testkit md

* Address ben's code review

* Fix links
2020-03-15 12:39:43 -05:00
Chris Stewart
6a76f5c543 Add disclaimers to the wallet/key-manager around API breaking changes… (#1237)
* Add disclaimers to the wallet/key-manager around API breaking changes and limitations of the current iteration of the wallet

* Reword as Ben suggests
2020-03-15 12:39:01 -05:00
Chris Stewart
6964768292 2020 03 13 node md (#1229)
* Implement example of starting a neutrino node and example of adding a callback to node.md

Fix port number

* Clean up some names in the example

* Make sure we get the correct bitcoind binary with neutrino p2p support in the example
2020-03-14 08:49:39 -05:00
Chris Stewart
c3a70a9eb9 Fix scala 2.11 compile (#1233) 2020-03-14 08:18:26 -05:00
Chris Stewart
cd84e3483d 2020 03 06 wallet rescan test (#1218)
* Add wallet rescan tests

* Create FilterSync, which gives us an API inside of the chain project to sync filters with

Add another unit test to filter sync

Add more unit tests for ChainSync and FilterSync

Clean up some docs, remove some extra lines of code

Run scalafmt

Add filter-sync.md

Cleanup some nits

Add more information of how FilterSync.syncFilters() works

Add 'FilterWithHeaderHash' type so that we can actually validate/verify block headers that are being fed into the chain project

Run scalafmt, hide imports in filter-sync.md so code appears cleaner

Move implicits out of invisible block as it seems to cause errors

Make it so FilterSync processes filters in batches rather than fetching them all at once

Fix compile error

* WIP bitcoind implement ChainQueryApi

* rework fixtures to be able to support injecting ChainQueryApi implemented by bitcoind into our fixture infrastructure for creating wallets

* Fix rebase problem

* Implement getFiltersBetweenHeight() with ben's solution

* WIP Start implementing NodeApi against bitcoind

* Actually inject the bitcoind backed nodeApi into our fixture

* Get first rescan test working for rescanning the entire blockchain

* Implement test case for rescanning from a specific height

* Fix NeutrinoNodeWalletTest test case that uses a experimental version of bitcoind, for now i believe our experimental binary is on v18

* Add wallet-rescan.md, add helper method to WalletApi that allows you to clear out the wallet's utxos/addresses

* Add another log to try to debug CI

* Address code review

* Fix wrong ordering of deletion of tables in clearUtxosAndAddresses()

* reset logging level
2020-03-13 16:11:02 -05:00
rorp
c5f5b8c065 Fix the time based test cases in BitcoindV17RpcClientTest (#1224) 2020-03-13 11:24:43 -07:00
Ben Carman
54f90f5fad Order website sidebar by project, fix capitalization (#1226) 2020-03-13 09:54:07 -05:00
Ben Carman
90c39adbb8 Merge pull request #1225 from benthecarman/docs-unused-imports
Remove unused imports in docs
2020-03-12 20:22:20 -05:00
Ben Carman
c8c3060371 Remove unused imports in docs 2020-03-12 17:30:59 -05:00
Ben Carman
74e2e79896 Fix error, add await to psbt doc (#1220) 2020-03-12 14:02:14 -05:00
Ben Carman
7ae559f878 Merge pull request #1202 from benthecarman/psbt-single-docs
Docs for PSBT signing with BitcoinUTXOSpendingInfoSingle
2020-03-12 09:55:35 -05:00
Nadav Kohen
a09e976d66 Added hash types to scriptsignature generators (#1219) 2020-03-11 22:25:21 -05:00
Ben Carman
381251b687 NodeApi doc (#1205)
* NodeApi doc

* Add example

* make imports invis, add example

* Fix invis imports
2020-03-11 11:07:30 -05:00
Ben Carman
c6bad80814 fix compile issues 2020-03-11 09:48:53 -05:00
Ben Carman
b1d037bff2 fix compile issue 2020-03-11 09:48:12 -05:00
Ben Carman
c535985d6f PSBT signing with BitcoinUTXOSpendingInfoSingle 2020-03-11 09:48:09 -05:00
Ben Carman
a70b03d08a ChainQueryApi doc (#1204)
* ChainQueryApi doc

* Add example

* make imports invis, add example

* Fix invis imports
2020-03-11 08:56:37 -05:00
Scala Steward
e4fc678118 Update janino to 3.1.1 (#1212) 2020-03-11 07:25:46 -05:00
Chris Stewart
4c9a22f1e1 2020 03 08 filter sync (#1209)
* Create FilterSync, which gives us an API inside of the chain project to sync filters with

Add another unit test to filter sync

Add more unit tests for ChainSync and FilterSync

Clean up some docs, remove some extra lines of code

Run scalafmt

Add filter-sync.md

Cleanup some nits

Add more information of how FilterSync.syncFilters() works

Add 'FilterWithHeaderHash' type so that we can actually validate/verify block headers that are being fed into the chain project

Run scalafmt, hide imports in filter-sync.md so code appears cleaner

Move implicits out of invisible block as it seems to cause errors

Make it so FilterSync processes filters in batches rather than fetching them all at once

Fix compile error

* Add comment about trust model

* Run scalafmt
2020-03-10 18:01:14 -05:00
Nadav Kohen
6ed12884ac Adding new SPK doc (#1208)
* Added a document explaining how to add new script types.

* built website

* Added a doc explaining the differences between full and single signing

* Added design philosophy section

* Responded to review

* mdoc now compiles the code within adding-spks.md, with some caveats surrounding sealed traits

* Added explanitory comment
2020-03-10 14:30:16 -05:00
Chris Stewart
65ddeb6798 Make imports in chain.md invisible (#1213)
* Make imports in chain.md invisible

* Hide imports in wallet.md

* Make all core module md files imports hidden

* Cleanup imports on rpc markdown docs

* Try and figure weird travis behavior

* Get rid of uneeded nest qualifiers on mdoc
2020-03-10 12:49:22 -05:00
Ben Carman
237e61cccc Fix typo in docs (#1203) 2020-03-06 09:24:06 -06:00
Chris Stewart
b460534449 Update flyway-core to 6.3.0 (#1195) 2020-03-05 15:47:34 -06:00
Chris Stewart
cb8770a73b Update eclair.md, also add code example (#1192) 2020-03-04 09:41:21 -06:00
Chris Stewart
7265105c66 Update website configuraiton.md with migrations information (#1189) 2020-03-04 09:40:50 -06:00
Ben Carman
aa548ece14 Merge pull request #1182 from benthecarman/txo-state-test
TxoState Life Cycle Tests
2020-03-03 17:35:00 -06:00
Ben Carman
fb4bf84891 Remove requirement for sats parameter (#1190) 2020-03-03 08:59:25 -06:00
Chris Stewart
1e661848f7 Make eclair tests use bitcoind v19 rather than bitcoind v17 (#1187) 2020-03-02 12:30:22 -06:00
Ben Carman
bc87bc64eb TxoState Life Cycle Tests 2020-02-28 17:18:28 -06:00
Ben Carman
5dbff6a841 Merge pull request #1174 from benthecarman/sats-the-standard
Allow getbalance to return in sats
2020-02-28 09:51:10 -06:00
Ben Carman
694e727dfc Fix Wallet tests' keymanager to use changed config (#1173) 2020-02-28 08:53:49 -06:00
Ben Carman
77674a3ca8 Allow getbalance to return in sats 2020-02-27 14:18:38 -06:00
Ben Carman
6a5700ffef Add PSBTs to Docs Sidebar (#1172) 2020-02-26 15:06:57 -07:00
Nadav Kohen
cbefe389f5 Added a getting-setup markdown doc for the website (#1167)
* Added a getting-setup markdown doc for the website

* Responded to Ben's review

* Added testnet section

* Added DLC doc

* Got the website working locally

* Fixed linking

* Responded to review
2020-02-26 13:09:44 -07:00
Chris Stewart
76f3e0489b Update try-bitcoin-s.sh (#1165)
* Update try-bitcoin-s.sh

* chmod script
2020-02-26 07:50:17 -06:00
Nadav Kohen
052b64b7e2 Seq and Map Wrappers (#1131)
* Renamed size to byteSize in NetworkElement to avoid ambiguity

* Introduced SeqWrapper and MapWrapper to allow for wrapper case classes to have direct access to underlying methods

* Responded to review
2020-02-24 14:39:20 -06:00
Chris Stewart
03cfbc0803 2020 02 21 datadir configurable (#1156)
* Make it so that you can pass in the datadir from the command line

* Add example on website

* implement ben's solution
2020-02-24 09:50:40 -06:00
Chris Stewart
89b8989b2f 2020 02 23 scalatest show test duration (#1159)
* Make scalatest build show test duration

* Use more idiomatic flag passing
2020-02-23 10:22:28 -06:00
Chris Stewart
7652105bdd Update dns seeds to reflect what is currently in bitcoin core, some of the old seeds do not exist anymore (#1157) 2020-02-22 12:24:59 -06:00
Chris Stewart
436e1ab1da Reduce GCS generator params again to try and stop timing out on CI (#1144)
* Reduce GCS generator params again to try and stop timing out on CI

* Reduce magic number to 30 as 40 can still fail

* Reduce gain
2020-02-21 11:22:04 -06:00
Scala Steward
95902d4148 Update scalacheck-1-14 to 3.1.1.1 (#1145) 2020-02-21 08:47:35 -06:00
Scala Steward
8257d61dbb Update scalatest to 3.1.1 (#1142) 2020-02-21 07:04:05 -06:00
Scala Steward
44211abe83 Update scalacheck-1-14 to 3.1.1.0 (#1143) 2020-02-21 07:03:38 -06:00
Scala Steward
2200abd2a2 Update flyway-core to 6.2.4 (#1141) 2020-02-20 09:50:10 -06:00
Chris Stewart
6769205a8d Bump 'downloadBitcoind' timeout (#1136) 2020-02-19 09:48:45 -06:00
Nadav Kohen
7169455eff 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
8ebb53647c 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
47c8a4dd4f Update flyway-sbt to 6.2.3 (#1130) 2020-02-17 13:45:08 -06:00
Chris Stewart
2279313eb9 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
876eab472f 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