Commit graph

1673 commits

Author SHA1 Message Date
Torkel Rogstad
1fc3a27a49 Add note on how to build JAR files (#663) 2019-07-30 18:52:50 -05:00
cwaldron97
87dabed2b1 Replace Bitcoins params in RPC client with CurrencyUnit (#618)
* implemented currency unit and wrote a writer

* Convert more Bitcoins parameters to CurrencyUnit
2019-07-30 18:52:01 -05:00
cwaldron97
1b3a964027 Killing Joda Dependency (#643)
Remove Joda dependency
2019-07-29 12:22:25 +02:00
Torkel Rogstad
5171fbdc0f
Merge pull request #567 from Christewart/2019-07-03-resolve-http-parse-exn-bitcoind
Attempt to resolve issue #527 where bitcoind returns html indicating …
2019-07-23 00:38:28 +02:00
Chris Stewart
aef741adf7
Delete files from the last iteration of our spv node (#656) 2019-07-22 08:39:12 -05:00
Chris Stewart
2994e82d02
Implement missing branch on POW validation for testnet, implement Blo… (#652)
* Implement missing branch on POW validation for testnet, implement BlockHeaderDAO.find

* implement second special case for if we are allowing min difficulty blocks, but are at a POW change interval. If we are at a POW change interval, we return that block

* Address code review
2019-07-22 07:19:57 -05:00
Torkel Rogstad
2dcda7da25 Tweak error logging of bitcoind responses
In this commit we move the error handling part of bitcoind responses
closer to the source of where they will happen, hopefully
giving better error messages.
2019-07-22 13:33:22 +02:00
Chris Stewart
e960422ff8
implement ability to monitor a invoice that we are generated (#649)
* implement ability to monitor a invoice that we are generated

* reorganize tests to get them to pass
2019-07-19 13:03:43 -05:00
Torkel Rogstad
8d44862148
Merge pull request #647 from torkelrogstad/2019-07-18-merkle
Fix merkle block parsing error
2019-07-19 10:51:28 +02:00
Torkel Rogstad
72018bf831 Fix merkle block parsing error 2019-07-19 10:49:34 +02:00
Chris Stewart
ab7e8fab38
Call BitcoindRpcTestUtil.stopServer inside of EclairRpcTestUtil.shutdown (#645)
* Call BitcoindRpcTestUtil.stopServer inside of EclairRpcTestUtil.shutdown

* Reset submodule
2019-07-18 12:35:33 -05:00
Torkel Rogstad
d5546ed899
Merge pull request #606 from scala-steward/update/sbt-native-packager-1.3.25
Update sbt-native-packager to 1.3.25
2019-07-18 15:50:27 +02:00
Torkel Rogstad
363c9fb83b Update cli.sbt for native-image building 2019-07-18 15:47:59 +02:00
Torkel Rogstad
3be3353aec
Merge pull request #637 from cwaldron97/2019-07-16-remove-bitcoinj-dep
Remove BitcoinJ from dependencies
2019-07-18 11:01:19 +02:00
cwaldron97
20a257aede removed bitcoinj conversions 2019-07-17 15:13:33 -05:00
cwaldron97
aff51cb7f3 more removal 2019-07-17 14:47:45 -05:00
Scala Steward
d0bcaa9363 Update akka-http, akka-http-testkit to 10.1.9 (#639) 2019-07-17 13:17:58 -05:00
Nadav Kohen
ccd6e7237a Removed self-reference infinite loop for LnTaggedFields.apply (#641) 2019-07-17 12:34:33 -05:00
Scala Steward
c1f4855207
Update sbt-native-packager to 1.3.25 2019-07-17 15:31:16 +02:00
Torkel Rogstad
8125bca7c2 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
Torkel Rogstad
ecfd78f741 Release lib with openjdk8 (#638) 2019-07-17 06:23:14 -05:00
cwaldron97
30b8aab1cf started to remove bitcoinj deps 2019-07-16 15:12:38 -05:00
Chris Stewart
c1f9bb765b
qAddress issue where source and target fields don't work completely for jdk 9+ when trying to target jvm 1.8 (#636) 2019-07-16 14:58:36 -05:00
Chris Stewart
f25707efa7
Scope the targetting of code only to compiling code, instead of including things like javadoc generation (#632) 2019-07-16 11:32:27 -05:00
Torkel Rogstad
970a9a2187
Merge pull request #630 from torkelrogstad/2019-07-16-false-positives
Remove assertion on irrelevant TX
2019-07-16 17:15:11 +02:00
Torkel Rogstad
e3a9641133
Merge pull request #594 from torkelrogstad/2019-07-10-bloom
Add all wallet outpoints to bloom filter
2019-07-16 17:07:21 +02:00
Chris Stewart
a301b21761
Target jvm 1.8 with test files along with source files (#631) 2019-07-16 09:10:50 -05:00
Torkel Rogstad
ae1602c423
Merge pull request #612 from scala-steward/update/sbt-mdoc-1.3.1
Update sbt-mdoc to 1.3.1
2019-07-16 15:53:03 +02:00
Torkel Rogstad
0014ee0ed8
Merge pull request #604 from scala-steward/update/sbt-api-mappings-3.0.0
Update sbt-api-mappings to 3.0.0
2019-07-16 15:50:06 +02:00
Scala Steward
20aafe3c61
Update sbt-mdoc to 1.3.1 2019-07-16 15:33:28 +02:00
Scala Steward
2cdd1cf8ad
Update sbt-api-mappings to 3.0.0 2019-07-16 15:32:58 +02:00
Torkel Rogstad
de511014a4 Remove assertion on irrelevant TX
Due to how bloom filters work (they give false
positives) it's meaningless to assert on _not_
receiving a transaction from our peer. In most
cases we're not going to receive an irrelevant
TX, but if it happens we can't be sure if it's
because we did something wrong or because we
just hit a false positive.
2019-07-16 14:29:01 +02:00
Torkel Rogstad
53af971b10 Add all wallet outpoints to bloom filter
This is a workaround for Bloom filters never being
updated for SegWit. See comment in
LockedWallet#getBloomFilter for more context.
2019-07-16 14:18:29 +02:00
Chris Stewart
538f0e4f7f
Make sure our secp256k1jni package is compiled against java 8 (#629)
* Make sure our secp256k1jni package is compiled against java 8

* revert submodule
2019-07-16 07:07:36 -05:00
Torkel Rogstad
48e379d64e
Merge pull request #590 from torkelrogstad/2019-07-10-addresses
Add notion of address types in wallet
2019-07-16 14:01:03 +02:00
Scala Steward
e5f05cbb3e Update sqlite-jdbc to 3.28.0 (#616) 2019-07-16 06:18:40 -05:00
Torkel Rogstad
82f7e8810a
Merge pull request #598 from torkelrogstad/2019-07-11-bitcoind-exception
Add types for various bitcoind RPC exceptions
2019-07-16 13:08:53 +02:00
Torkel Rogstad
59ed95297b Add notion of address types in wallet
In this commit we
1) Add the notion of address types in the wallet, and remove
    the emphasis on account types. Users now just request
    a segwit/nested-segwit/legacy address, and we take care
    of querying for the correct account
2) Fix a bug where a wallet could only get addresses for
    its default address type. This was a pretty minor bug,
    where a few values that should have been dynamic was
    hard coded.
2019-07-16 12:36:38 +02:00
Torkel Rogstad
18e5d97720 Add types for various bitcoind RPC exceptions
In protocol.h (Bitcoin Core) all RPC errors are enumerated. The
exceptions added here are copied directly from that file.
2019-07-16 12:20:24 +02:00
rorp
b5aed58e26 Revert payment monitor (#600)
* Revert payment monitor

* Revert payment monitor

* expose EcecutionContext in EclairApi

* more configurable payment monitoring

* cleanup, more tests

* addressed comments
2019-07-15 11:18:48 -05:00
Scala Steward
10d5352eb1 Update sbt-bloop to 1.3.2 (#602) 2019-07-15 09:14:42 -05:00
Chris Stewart
3860b9c919
2019 07 15 rm cli testkit (#625)
* re-add skip publishing for the cli, remove the dependency from the testkit

* Apply common settings to picker project
2019-07-15 08:04:42 -05:00
Chris Stewart
5b1c30e07b
Favor publishing 2.12 artifacts first in bitcoin-s, so if something fails with the 2.11 build we get the 2.12 artifact first (#624) 2019-07-15 06:27:05 -05:00
Chris Stewart
6511b6e0ae
If we don't publish these three subprojects, testkit cannot be used as a dependency for other applications (#621) 2019-07-14 07:27:59 -05:00
Torkel Rogstad
ae134f9742 Node cleanup (#591)
* Cleanup

In this commit we cleanup a few Scaladocs and change some
trait/impl pairs into just a case class.

* Node cleanup

In this commit we
1) Rename Client to P2PClient. Client is a very generic name.
2) Clean up some Scaladocs
3) Remove some unecessary objects/traits/classes and replace them
    with case classes
4) Add trace logging of bytes received in P2PClient
2019-07-13 09:26:00 -05:00
Scala Steward
31ddb89fa3 Update native-lib-loader to 2.3.4 (#614) 2019-07-13 08:08:23 -05:00
Scala Steward
fe73fb58ed Update slick, slick-hikaricp to 3.3.2 (#607) 2019-07-13 08:06:47 -05:00
Chris Stewart
1a5f449fb5
Attempt to fix .get exception in docs.sbt (#620) 2019-07-13 08:06:32 -05:00
Scala Steward
fa8d30cd32 Update scodec-bits to 1.1.12 (#615) 2019-07-13 07:55:06 -05:00
Scala Steward
d403932446 Update scalatest to 3.0.8 (#613) 2019-07-12 17:38:55 -05:00