Commit graph

2282 commits

Author SHA1 Message Date
Chris Stewart
94568aba22
Change ChainApi.getBestFilterHeader() return type to Future[Option[Co… (#1550)
* Change ChainApi.getBestFilterHeader() return type to Future[Option[CompactFilterHeaderDb]] to resolve issue 1549

* Run scalafmt
2020-06-13 17:01:51 -05:00
Ben Carman
aa53ee5f57
Fix and Optimize Broadcast Transaction Test (#1545)
* Fix and Optimize Broadcast Transaction Test

* Use variable
2020-06-12 10:43:26 -05:00
Chris Stewart
2c78d9ff0d
Create safeRewind() helper method in secp256k1jni (#1546) 2020-06-12 06:07:57 -05:00
Ben Carman
4e037b5cc4
Fix compile issue for older versions (#1547) 2020-06-11 15:29:23 -05:00
Ben Carman
9422b325e5
Fix test failure 2020-06-11 13:41:56 -05:00
Ben Carman
7d970eaf13
Attempt to fix memory leak in recalc chain work (#1535) 2020-06-11 13:12:22 -05:00
Chris Stewart
9dea4254be
2020 06 09 addr invoice string factory (#1538)
* Implement StringFactory with Address and LnInvoice

* Address code review

* Run scalafmt
2020-06-11 10:44:12 -05:00
Chris Stewart
ad6d4a33ca
Add StringFactory trait (#1537) 2020-06-09 15:03:56 -05:00
Chris Stewart
7784087bd5
Break things up in server/Main.scala, allow things to be done asynchr… (#1522)
* Break things up in server/Main.scala, allow things to be done asynchronously where they can be

* Rework Main.scala to have small methods that are used to initialize parts of our infra. Now it doesn't depend on global variables in Main either, they are implictly passed to these helper methods
2020-06-09 07:44:37 -05:00
Ben Carman
9507315cd4
Document LN Data types (#1504)
* Document LN Data types

* change to to-string
2020-06-08 15:20:40 -05:00
Ben Carman
003bda2fe4
Attempt to fix BitcoindV19RpcClientTest from losing connection (#1515) 2020-06-08 14:14:14 -05:00
Ben Carman
b621412f32
Optimize and Clean up WalletRpcTest (#1511) 2020-06-08 14:13:01 -05:00
Chris Stewart
b0229090d1
Introduced bundle project and created main class that runs server and then gui (#1531)
Co-authored-by: nkohen <nadavk25@gmail.com>
2020-06-08 08:32:38 -05:00
dependabot[bot]
c5572f641f
Bump websocket-extensions from 0.1.3 to 0.1.4 in /website (#1527)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-08 06:49:51 -05:00
Chris Stewart
c54ee10809
2020 06 05 mv chainwork calc (#1519)
* Fix Chaindb chainwork Migration

* Move chain work calculation out of node, use the ChainApi returnd by runChainWorkCalc()

Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-05 11:04:09 -05:00
Ben Carman
43a5c6c05f
Fix Chaindb chainwork Migration (#1518) 2020-06-05 11:01:42 -05:00
Chris Stewart
e6af044e3c
Add more descriptive log message in P2PClient when we get disconnectd (#1514) 2020-06-04 16:25:04 -05:00
Ben Carman
54c8a3feba
Make Golomb Filter Test run in parallel (#1512) 2020-06-04 16:23:34 -05:00
Chris Stewart
8c0e64e101
Move slickDbConfig out of JdbcProfileComponent trait into AppConfig (#1510)
* Move slickDbConfig out of JdbcProfileComponent trait into AppConfig

* Cleanup newliens
2020-06-04 12:49:08 -05:00
Ben Carman
31807c9cbd
Implement best block hash correctly (#1452)
* Implement best block hash correctly

* Handle no common history

* Fix getBlockProof to be BigInt instead of UInt32

* Fix warnings

* Make get best filter use chainwork

* Remove unused function, test isMissingChainWork

* Fix comparisons for chain work in sql

* Fix migrations from rebase

* Fix CI error

* Fix postgresql
2020-06-04 12:05:10 -05:00
Ben Carman
95fb2b7e24
Add docs for server endpoints (#1505) 2020-06-04 06:41:07 -05:00
Ben Carman
977a696819
Testkit wallet with bitcoind uses bitcoind as api (#1499)
* Testkit wallet with bitcoind uses bitcoind as api

* Fix docs
2020-06-03 14:05:22 -05:00
Chris Stewart
6ecb3cdbd3
Attempt to re-enable fee provider publishing (#1503) 2020-06-03 07:22:54 -05:00
Chris Stewart
62ebf640d8
Add database configuration as a heading that can be hyper linked too (#1501) 2020-06-03 06:15:33 -05:00
rorp
a9430c2d5a
PostgreSQL support (#1315) 2020-06-02 16:37:48 -05:00
Ben Carman
35141012ec
Implement Bitcoind as ChainQueryApi & NodeApi (#1481)
* Implement Bitcoind as ChainQueryApi & NodeApi

* Remove default implementations for filter apis

* Fix warnings

* Fix error
2020-06-01 14:03:00 -05:00
Chris Stewart
7fd36e9311
Reduce number of hashes used in GolombFilterTest to keep CI from timing out (#1494) 2020-06-01 09:29:02 -05:00
Chris Stewart
89ec91f3f3
Skip publishing of fee-provider-test (#1495) 2020-05-30 15:09:39 -05:00
Chris Stewart
d1ebcd8c0b
2020 04 11 bump play json v (#1490)
* Bump play-json to 2.8.1

* Fix imports
2020-05-30 14:34:57 -05:00
Chris Stewart
217a8b650a
Skip publishing fee provider for now (#1492) 2020-05-30 10:09:02 -05:00
Ben Carman
af02cb739a
Implement BitcoindRpcClient as a FeeProvider (#1486)
* Implement BitcoindRpcClient as a FeeProvider

* Make FeeRateApi a trait
2020-05-30 09:03:08 -05:00
Chris Stewart
8d21cd1378
Bump akka to 2.6.4, fix deprecated things (#1374)
* Bump akka to 2.6.4, fix deprecated things

* Bump to 2.6.5 akka

* Clean up imports

* Remove materializer from FeeProviders
2020-05-30 08:49:28 -05:00
Chris Stewart
d8dcb223f8
Bump scodec to 1.14 (#1489) 2020-05-30 07:53:11 -05:00
Ben Carman
3e323ce18e
Fee Rate Api Support (#1470)
* Fee Rate Api Support

* FeeRateProvider Tests

* Rename folder

* Fix docs
2020-05-29 13:01:20 -05:00
Chris Stewart
8241e129a9
Filter -Xfatal-warnings when using scala console so we don't get error messages when you are trying out code (#1485) 2020-05-29 09:03:43 -05:00
Chris Stewart
9040e2ccaf
Filter warnings on doc for publishing (#1484) 2020-05-29 07:03:18 -05:00
Chris Stewart
11a635f3be
Add -Xfatal-warnings on Scala 2.13 (#1483)
* Add -Xfatal-warnings on Scala 2.13

* Turn off -Xfatal-warnings in docs/
2020-05-29 06:21:56 -05:00
Chris Stewart
afbce5bc4a
Cache numbers between 0 and 256 to make serialization/deserialization faster (#1482) 2020-05-29 05:00:15 -05:00
Ben Carman
9c17e00139
Implement KeyManagerLogger (#1386) 2020-05-28 13:06:50 -05:00
Chris Stewart
df13a0b313
Drop 2.11 from inThisBuild.sbt and Deps.scala (#1479) 2020-05-28 11:49:53 -05:00
rorp
8350a47bdb
Upgrade Eclair to v0.4 (#1421)
* Upgrade Eclair to v0.4

* fix test binary

* logging

* unquote paths

* fix eclair-node.sh

* OSX fix

* cleanup
2020-05-28 10:50:57 -05:00
Nadav Kohen
13884f5470
Rework Standard Finalizer (into pieces) (#1473)
* Made the standard non-interactive tx finalizer simple using composition of its (reusable) pieces

* Responded to code review and made minor improvements

* Fixed docs
2020-05-27 18:05:37 -05:00
Chris Stewart
1f4227c75c
Add more optimizations, MultSignatureScriptPubKey.isMultiSignatureScr… (#1475)
* Add more optimizations, MultSignatureScriptPubKey.isMultiSignatureScriptPubKey() fails fast if it's not a valid multisig spk, also use more caching inside of Number's (UInt64, UInt32, etc)

* Fix shortChannelidTest

* Cache popular UInt64 numbers that are used in ScriptPubKey's. This reduces allocations which reduces memory usage
2020-05-27 15:47:20 -05:00
Ben Carman
5d276d220f
Attempt to fix database locking errors in process tx test (#1477) 2020-05-27 15:26:49 -05:00
Scala Steward
8a1e1b6c01
Update bcprov-jdk15on to 1.65.01 (#1476) 2020-05-27 15:26:07 -05:00
Ben Carman
5189673a62
Fix FeeUnit match not being exhaustive (#1472) 2020-05-27 06:06:06 -05:00
Ben Carman
c64c1ddfa6
Update docs pertaining to logging (#1471) 2020-05-26 15:33:27 -05:00
Nadav Kohen
2199cfbb28
CryptoContext Refactor (#1469)
* Moved logic to disable use of secp256k1 library into crypto project

* Fixed secp doc
2020-05-26 13:05:21 -05:00
Nadav Kohen
8b62272cb9
Fixed sequence computation for P2PKWithTimeout and RawTxFinalizer composition discovered during DLC rebase (#1461) 2020-05-26 07:54:54 -05:00
Ben Carman
eb37e551e0
Increase Key Manager test coverage (#1465) 2020-05-26 06:13:01 -05:00