bitcoin-s/app
Torkel Rogstad 7f0b11c019 Add functionality for broadcasting TXs to node (#577)
* Add functionality for broadcasting TXs to node

In this commit we add functionality and tests
for broadcasting a TX from our node. To accomplish
this we introduce a table over broadcastable TXs
that's added to when the externally facing method
broadcastTransaction(tx) withing SpvNode is called.
We send out a inv message for the TX we just added,
and upon receiving a getdata message we search in
the previously mentioned table for entries where
the hashes match up.

* Broadcast TX from server to SPV node

* Perform assertions on the balance of bitcoind after sending a TX

* Remove typeclass from broadcast TX

* Refactor withFundedWalletAndBitcoind

* Match on BitcoindExecption instead of throwable

* Clean up broadcast functionality after code review
2019-07-17 07:32:05 -05:00
..
cli 2019 07 15 rm cli testkit (#625) 2019-07-15 08:04:42 -05:00
cli-test Somewhat dirty standalone server and CLI binary (#558) 2019-07-10 06:33:17 -05:00
picklers/src/main/scala/org/bitcoins/picklers Somewhat dirty standalone server and CLI binary (#558) 2019-07-10 06:33:17 -05:00
server Add functionality for broadcasting TXs to node (#577) 2019-07-17 07:32:05 -05:00
server-test Somewhat dirty standalone server and CLI binary (#558) 2019-07-10 06:33:17 -05:00