mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-22 22:36:34 +01:00
Bitcoin Implementation in Scala
* Create CachedBitcoind, implement it in FundTransactionHandlingTest * Add BaseWalletTest, extend it with BitcoinSWalletTest & BitcoinSWalletTestCachedBitcoind, add CachedBitcoinV19 and use it RescanHandlingTest * Make ProcessBlockTest work with cached bitcoind * Make trait for CachedBitcoindNewest for the newest version of bitcoind * Make UTXOLifeCycleTest use cached bitcoind * Add WalletBloom, WalletSyncTest to use cached bitcoinds * Add WalletIntegrationTest * Rework beforeAll() and afterAll() into the super trait like BaseWalletTest * Add standlone BitcoindFixtures, use it in BitcoindBackendTest * Use new BitcoindFixtures in BitcoindBlockPollingTest * Introduce BaseNodeTest, start implementing the usage of cached bitcoinds in the nodeTest project * Use cached bitcoind's with SpvNodeTest & SpvNodeWithWalletTest * Fix bug on postgres with reusing database, upsert the genesis header rather than create it * Get NeutrinoNode tests workign with cached bitcoinds * Fix NeutrinoNodeWithWallet by destroying wallet state for Postgres * Add teardown helper method for bitcoind * Teardown chain project when using node fixtures since node is dependent upon the chain project. * Turn off parallelExecution again * Switch the parallelExecution flag to only be set on CI, so we can get better performance when running locally * Start implementing BitcoindFixtures, use BitcoindFixturesCachedTriple on TestUtilRpcTest * Fix compiler errors, begin implementing NodePair * Refactor TestRpcUtilTest to use 2 bitcoinds rather than 2 * Reduce the number of bitcoinds that MultiWalletRpcTest needs from 3 -> 1 * Reduce number of bitcoinds used in WalletRpcTest from 3 -> 2 * Add some documentation * Try to re-add parallelExecution * Reduce the number of bitcoinds used in PsbtRpcTest from 3 -> 2 * Disable parallelExecution in Test again * Make BitcoindV21RpcClientTest & BitcoindV20RpcClientTest reduce bitcoind usage from 2 -> 1 * Make BitcoindV19RpcClienttest reduce bitcoind usage from 2 -> 1 * Rework MempoolRpcTest to use fixtures, add BitcoindVersion to CachedBitcoindCollection * Make sure clientAccumm has to be specified as a paramter now rather than filling in by default * Begin parameterizing NodePair/NodeTriple to retain type information for the specific version of bitcoind that was used * Don't implement version in super trait * Fix docs * Fix async issue in V21 test suite * Append to vectors in CachedBitcoinCollection rather than replace * Fix rebase issues * Add scaladocs * Fix BitcoindV18RpcClient address info test * Implement fixtures in BitcoindV17RpcClientTest fixtures * Cleanup v17 PsbtRpcTest * Reduce bitcoind usage from 3 -> 1 in BitcoindV18RpcClientTest * Remove abandon transaction test, this allows us to reduce the number of bitcoind's used in MempoolRpcTest from 3 -> 2 * Remove the requirement to inject BitcoinSAsyncFixtureTest, add it in the test traits explicitly to make things easier. Also add explicit afterAll() method to tear down both the CachedBitcoind & BitcoinSAsyncFixtureTest * Fix missing Await.result() in BitcoindRpcTest.afterAll() * Rework MultiWalletRpcTest to use a NodePair * Rework BlockchainRpcTest to use fixtures * Rework Client start()/stop() methods. Now use an AtomicBoolean to indicate when a user has requested a client to start/stop rather than sending pings to bitcoind that can fail because the conneciton pool has been shutdown in test cases * Try my luck with turning on parallelExecution in CI again * Revert parallelExecution, now testes do not run in parallel on CI * Only turn off parallelExecution for bitcoindRpcTest * Adjust build to only have bitcoindRpcTest NOT in run parallel on mac, reduce number of blocks used in BitcoindRpcTestUtil.createNodeSequence * Run less tests in the rpc test suite as that takes the longest, move them over to node/wallet/dlc test suite on mac osx CI * Don't run eclair tests in parallel either * Remove CachedBitcoind from BitcoinSWalletTest * Fix async bug in test case * Push to github to force re-run of CI * Push to github to force re-run of CI * Push to github to force re-run of CI |
||
---|---|---|
.github | ||
app | ||
app-commons | ||
app-commons-test/src/test/scala/org/bitcoins/commons | ||
async-utils/src/main/scala/org/bitcoins/asyncutil | ||
async-utils-test/src/test/scala/org/bitcoins/asyncutil | ||
bench | ||
bitcoin-s-docs | ||
bitcoind-rpc | ||
bitcoind-rpc-test | ||
chain | ||
chain-test/src/test | ||
core | ||
core-test | ||
crypto | ||
crypto-test | ||
db-commons | ||
db-commons-test/src/test/scala/org/bitcoins/db | ||
dlc-oracle/src/main | ||
dlc-oracle-test/src/test/scala/org/bitcoins/dlc/oracle | ||
docs | ||
eclair-rpc | ||
eclair-rpc-test | ||
fee-provider/src/main/scala/org/bitcoins/feeprovider | ||
fee-provider-test/src/test/scala/org/bitcoins/feeprovider | ||
key-manager | ||
key-manager-test/src/test/scala/org/bitcoins/keymanager | ||
node | ||
node-test/src/test/scala/org/bitcoins/node | ||
project | ||
release-notes | ||
secp256k1@e2e7cf2fba | ||
secp256k1jni | ||
testkit | ||
testkit-core | ||
wallet | ||
wallet-test/src/test | ||
website | ||
zmq | ||
.dockerignore | ||
.gitignore | ||
.gitmodules | ||
.jvmopts | ||
.scalafmt.conf | ||
build.sbt | ||
CONTRIBUTING.md | ||
docker-compose.yml | ||
Dockerfile | ||
inThisBuild.sbt | ||
LICENSE | ||
README.md | ||
try-bitcoin-s.sh |
Feature-rich toolkit for making Bitcoin and Lightning applications on the JVM.
For a complete guide on how to get started with Bitcoin-S, see our website at Bitcoin-S.org
Getting started
https://bitcoin-s.org/docs/getting-started
Adding bitcoin-s to your library
The latest release of bitcoin-s is v0.5.0
, here is how you can use the dependencies in your projects:
libraryDependencies += "org.bitcoin-s" % "bitcoin-s-secp256k1jni" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-core" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-crypto" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-chain" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-dlc-oracle" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-db-commons" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-fee-provider" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-bitcoind-rpc" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-eclair-rpc" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-key-manager" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-node" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-wallet" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-testkit" % "0.5.0"
libraryDependencies += "org.bitcoin-s" %% "bitcoin-s-zmq" % "0.5.0"
Docker images
We publish docker images to docker hub on every PR merge and tag on github. You can obtain the images for both the app server and oracle server on these docker hub repos