Commit graph

2007 commits

Author SHA1 Message Date
Chris Stewart
3ba5cae49b
Fix hardcoded network for the default wallet account (#1277)
* Fix hardcoded network for the default wallet account

* Refactor call to HDUtil.getCoinType()
2020-03-30 12:30:48 -05:00
Chris Stewart
8c953c3ad7
2020 03 28 uint32 cache (#1279)
* Make it so we re-use cached values for UInt32, Int32 to try and reduce object allocations

* Run scalafmt

* Add named args

* Remove import
2020-03-30 12:29:34 -05:00
Chris Stewart
d8586ef85e
Fetch addresses and utxos async in LockedWalletApi.processCompactFilter() (#1283) 2020-03-30 12:29:07 -05:00
Chris Stewart
752685fa4b
Replace all usages of List inside of ScriptParser with Vector (#1280) 2020-03-30 12:28:31 -05:00
Chris Stewart
02d926bb25
Reduce default num threads used for slick being a thread pool of 20 to 5 (#1281) 2020-03-30 12:27:57 -05:00
Ben Carman
0f899920f1
Wallet integration for nested segwit v0 spending (#1272)
* Wallet integration for nested-segwit spending

* Move parameter
2020-03-28 09:40:05 -05:00
Ben Carman
380ef24d9e
Fix CLI commands (#1271) 2020-03-28 08:53:31 -05:00
Scala Steward
072fdd7fc4
Update flyway-core to 6.3.2 (#1269) 2020-03-24 08:52:58 -05:00
Chris Stewart
7c30ecc391
Add new GPG key (#1263) 2020-03-23 09:46:56 -05:00
Scala Steward
fea08c6d4a
Update janino to 3.1.2 (#1252) 2020-03-23 06:30:18 -05:00
Chris Stewart
9995e220eb
Bump sbt-native-packager to 1.7.0 (#1265) 2020-03-23 06:10:26 -05:00
Scala Steward
fa6009355f
Update sbt-mdoc to 2.1.5 (#1260) 2020-03-21 08:08:18 -05:00
Chris Stewart
b913a42355
Bump scalac 2.12.x series to 2.12.11 (#1257) 2020-03-19 08:51:21 -05:00
Ben Carman
bbe7b78c4c
CLI help message include commands and their arguments (#1254) 2020-03-19 08:04:56 -05:00
Scala Steward
0c67805cee
Update sbt-mdoc to 2.1.4 (#1244) 2020-03-19 07:59:24 -05:00
Ben Carman
8ec143d0d4
Give ScriptInterpreter functions to verify a transaction or single input (#1223)
* Add TxSigCompenent constuctor

* Add verifyInputScript to ScriptInterpreter

* Add tests
2020-03-19 07:58:56 -05:00
Scala Steward
832282b378
Update flyway-core to 6.3.1 (#1228) 2020-03-19 07:58:35 -05:00
Chris Stewart
4559edde07
Actually add all files for 0.3.0 on the website so they show up (#1256) 2020-03-19 07:32:02 -05:00
Chris Stewart
ad84ad9fd7
Create v0.3.0 of the website (#1253)
* Create v0.3.0 of the website

* Add section on how to generate a new version
2020-03-18 18:48:05 -05:00
Chris Stewart
67a4955bad
Add trusted peer caveat in node.md (#1250) 2020-03-18 10:11:26 -05:00
Chris Stewart
f9ef6e5a89
Add a philsophy section on getting-started.md, add missing libraries (#1251) 2020-03-18 10:11:06 -05:00
Chris Stewart
7f54b0954b
2020 03 17 secp256k1jni md (#1248)
* First draft secp256k1.md

Fix imports/names

Fix nits

* Address nadav's code review
2020-03-18 05:51:54 -05:00
Chris Stewart
800fdffffb
2020 03 15 chainhandler getnancestor (#1247)
* Rename BlockHeaderDAO.getNChildren() to BlockHeaderDAO.getNAncestor() as that is what it actually does

* This changes the behavior of BlockHeaderDAO.getNAncestors from the previous implementation which just fetched headers in between two heights, to actually validating the headers that are fetched from the database with Blockchain.reconstructFromheaders()

* Run scalafmt

* Replace BlockHeader.getNAncestors call to Blockchain.reconstructFromHeaders() with Blockchain.connectWalkBackwards() so that we don't do full POW validation from the database, just make sure the headers connect to avoid reorg problems. Also add some more informative logs

* Address Roman's code review
2020-03-18 05:51:31 -05:00
Nadav Kohen
277d62591f
Bouncy Castle Fallback (#1232)
* Added Bouncy Castle fallback to all Secp calls in ECKey.scala

* Fixed bugs and made ExtKey support use of BouncyCastle

* An attempt to add bouncy castle testing to CI

* Responded to review

* De-coupled libsecp256k1 uses from Bouncy Castle uses

* Responded to review
2020-03-17 13:20:06 -05:00
Chris Stewart
677ec52a2d
Bump docusaraus dependency to the latest version 1.14.4 (#1243) 2020-03-16 06:01:07 -05:00
Chris Stewart
5e7cc6f980
Fix missing pattern patch case for when we have zero headers (#1242) 2020-03-15 20:04:52 -05:00
Chris Stewart
dfeebf69e2
Add headings for both Node and cofiguration on the sidebar (#1241) 2020-03-15 15:52:58 -05:00
Scala Steward
cb3ba1d920
Update akka-actor, akka-stream, ... to 2.5.30 (#1221) 2020-03-15 13:21:36 -05:00
Chris Stewart
5e4d5fb002
Add testkit md (#1234)
* Add testkit md

* Address ben's code review

* Fix links
2020-03-15 12:39:43 -05:00
Chris Stewart
87c768e0cc
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
e598d4c37e
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
5bb31f4951
Fix scala 2.11 compile (#1233) 2020-03-14 08:18:26 -05:00
Chris Stewart
c7f8ab72cf
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
6e5c0e4c8e
Fix the time based test cases in BitcoindV17RpcClientTest (#1224) 2020-03-13 11:24:43 -07:00
Ben Carman
69783f9ed8
Order website sidebar by project, fix capitalization (#1226) 2020-03-13 09:54:07 -05:00
Ben Carman
e60bc60692
Merge pull request #1225 from benthecarman/docs-unused-imports
Remove unused imports in docs
2020-03-12 20:22:20 -05:00
Ben Carman
47665a28dc
Remove unused imports in docs 2020-03-12 17:30:59 -05:00
Ben Carman
6b5b70c2f8
Fix error, add await to psbt doc (#1220) 2020-03-12 14:02:14 -05:00
Ben Carman
0a6a4753dd
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
674ba24950
Added hash types to scriptsignature generators (#1219) 2020-03-11 22:25:21 -05:00
Ben Carman
190f49aad7
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
3ba658b750 fix compile issues 2020-03-11 09:48:53 -05:00
Ben Carman
c8dde77421 fix compile issue 2020-03-11 09:48:12 -05:00
Ben Carman
81ad5bb322 PSBT signing with BitcoinUTXOSpendingInfoSingle 2020-03-11 09:48:09 -05:00
Ben Carman
e3cbfdad5c
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
4dedb90ee8
Update janino to 3.1.1 (#1212) 2020-03-11 07:25:46 -05:00
Chris Stewart
6d6b1023c5
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
3bfabe7bd5
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
89f1db6ca7
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
d9881dd153
Fix typo in docs (#1203) 2020-03-06 09:24:06 -06:00