Somewhat dirty standalone server and CLI binary (#558)
* PoC bitcoin-s-cli
* Add CLI, Server sbt projects, remove Ammonite
In this commit we set up sbt configuration for
CLI, Server (in-work-name) and corresponding
test projects.
We also remove Ammonite shell from sbt, as that
isn't really being used. bloop console offers
the same functionality way more ergonimic.
* Move BitcoinSAppConfig into new server project
Server project depends on node, chain wand wallet
so this is a good time for introducing this class
into main sources. We also introduce
BitcoinSTestAppConfig in testkit, to replace the
functionality in BitcoinSAppConfig related to
tests.
* Type chain in blockchainresult
* MVP server setup for node, chain and wallet
* Extremely dirty CLI for interacting with server
* initial attempt at mimicking Bitcoin Core API
* WalletStorage: add method for checking for seed existance
* Check for seed existance on wallet startup
* Fix bug where MnemonicNotFound was not an error
* Segregate confirmed and unconfirmed balance methods
* Add error handling, improve formatting of CLI output
* Tweak build
Bump Sttp version, downgrade to uPickle 2.11 compat,
skip publish in cli-test and server-test
* Add CLI, server and picklers to root project
2019-07-10 13:33:17 +02:00
|
|
|
name := "bitcoin-s-server"
|
|
|
|
|
|
|
|
// Ensure actor system is shut down
|
|
|
|
// when server is quit
|
|
|
|
Compile / fork := true
|
|
|
|
|
2021-03-31 15:04:30 -05:00
|
|
|
libraryDependencies ++= Deps.server.value
|
2019-12-04 07:25:03 -06:00
|
|
|
|
2020-10-08 07:17:48 -05:00
|
|
|
mainClass := Some("org.bitcoins.server.BitcoinSServerMain")
|
2019-12-04 07:25:03 -06:00
|
|
|
|
2020-09-23 17:02:40 -05:00
|
|
|
packageSummary := "A Bitcoin neutrino node and wallet"
|
|
|
|
|
|
|
|
packageDescription := "Runs a Bitcoin neutrino node and wallet, has functionality " +
|
|
|
|
"for many different modes and configuration options, see more at https://bitcoin-s.org/docs/applications/server"
|
|
|
|
|
2021-02-18 13:57:18 -06:00
|
|
|
dockerExposedPorts ++= Seq(9999)
|
|
|
|
|
2021-02-26 07:35:20 -06:00
|
|
|
dockerEntrypoint := Seq("/opt/docker/bin/bitcoin-s-server")
|
|
|
|
|
|
|
|
//this passes in our default configuration for docker
|
|
|
|
//you can override this by passing in a custom configuration
|
|
|
|
//when the docker container is started by using bind mount
|
|
|
|
//https://docs.docker.com/storage/bind-mounts/#start-a-container-with-a-bind-mount
|
|
|
|
dockerCmd ++= Seq("--conf", "/opt/docker/docker-application.conf")
|