Commit graph

2209 commits

Author SHA1 Message Date
Scala Steward
e6d1471af0
Update scalafmt-core to 2.6.0 (#1579)
* Update scalafmt-core to 2.6.0

* Upgrade scalafmt, fix all formatting errors

* Scalafmt on 2.12

* fix test

* More fixes

Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-19 10:38:12 -05:00
Ben Carman
fac75a8ada
Bump spread for address info tests in BitcoindV17RpcClientTest (#1591) 2020-06-19 08:21:34 -05:00
Nadav Kohen
4683d41568
Added DLC GUI stuff to a new package in the existing GUI and made a new tab for DLCs (#1590)
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-18 15:23:53 -05:00
Nadav Kohen
a84543cff5
Pulled down dlc CLI code (#1589)
* Pulled down dlc CLI code (returns 400 Bad Request when called)

* Added decodeRawTransaction to server

* Moved decoderawtransaction to CoreRoutes

Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-18 13:55:17 -05:00
Nadav Kohen
de048e448c
Refactored to allow support and disabling of RBF (#1588)
Co-authored-by: Ben Carman <benthecarman@live.com>
2020-06-18 13:23:14 -05:00
Nadav Kohen
ea38e827e8
Fixed compilation on bitcoin-s-bench (#1585) 2020-06-18 11:44:37 -05:00
Ben Carman
e63061e9b9
Wallet callbacks (#1543)
* Wallet Callbacks

* Move noop to Callback

* Add docs

* Add tests for wallet callbacks

* Use BitcoinAddress instead of AddressDb, improve tests
2020-06-17 17:21:19 -05:00
Chris Stewart
1305e53f1a
2020 06 14 wallet root accounts (#1556)
* Implement unit test cases for initializing a wallet twice, and failing with an exception when we initialize a wallet with a different key-manager

* Use bip39PasswordOpt cached in the WalletUnitTest suite

* Turn off logging

* Run scalafmt

* Turn log level back to WARN

* Run scalafmt
2020-06-17 15:11:42 -05:00
Nadav Kohen
38a73de48f
Lots of misc. improvements from dlc branch (#1583) 2020-06-17 14:34:01 -05:00
Ben Carman
105052d877
Have travis only run tests if it compiles (#1577)
* Have Travis only run tests if it compiles

* Fix warnings + fix compile issue

* Fix compilation issue

* Check formatting in first stage

* Fix name

* Fix formatting error
2020-06-17 14:05:44 -05:00
Ben Carman
0928fcae46
Optimize UpdateBloomFilterTest (#1548)
* Change UpdateBloomFilter to not rely on callbacks

* Fix rebase issues
2020-06-17 14:02:05 -05:00
Chris Stewart
d9079678eb
Update broken slack link (#1580) 2020-06-17 08:51:57 -05:00
Nadav Kohen
e504d8dfb7
Added DLC json data structures (#1575) 2020-06-16 15:21:33 -05:00
Nadav Kohen
2b91c39616
Added compile scope scalafmtCheck to travis runs (#1563) 2020-06-16 15:16:43 -05:00
Chris Stewart
4ee234d999
2020 06 12 mv to appconfig (#1553)
* Move hasWallet() to WalletAppConfig

* Move helper methods to create data dstructures in a project to their respective AppConfig file
2020-06-16 12:49:32 -05:00
Nadav Kohen
fb99307867
Added BlockTimeStamp abstraction for BlockStamps that aren't hashes (#1573)
* Added BlockTimeStamp abstraction for BlockStamps that aren't hashes

* Made BlockStamp and BlockTimeStamp extend StringFactory
2020-06-16 10:54:37 -05:00
Chris Stewart
a66ead6cbb
Make it so wallet fixtures take a bip39PasswordOpt as a paramter (#1555)
* Make it so wallet fixtures take a bip39PasswordOpt as a paramter

* Fix doc
2020-06-16 10:45:41 -05:00
Nadav Kohen
665b585002
Schnorr Data Structures (#1564)
* Pulled down crypto things from dlc branch including: Schnorr data structures, Schnorr Bouncy Castle implementation, FieldElement, and tests for these things

* Call fromValidHex in CryptoUtil
2020-06-16 09:52:45 -05:00
Scala Steward
0c0a19b6d6
Update play-json to 2.9.0 (#1566)
Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2020-06-16 07:45:39 -05:00
Scala Steward
f1d3dcc583
Update sbt-mdoc to 2.2.2 (#1571) 2020-06-16 07:44:53 -05:00
Scala Steward
8d7d71cf5b
Update sbt-native-packager to 1.7.3 (#1567) 2020-06-16 07:06:00 -05:00
Scala Steward
b11d1f0c68
Update postgresql to 42.2.14 (#1569) 2020-06-16 07:05:18 -05:00
Scala Steward
d09ac7511c
Update akka-actor, akka-stream, ... to 2.6.6 (#1565) 2020-06-16 06:45:46 -05:00
Scala Steward
582fdbc504
Update sbt to 1.3.12 (#1570) 2020-06-16 06:37:04 -05:00
Scala Steward
94658c8b28
Update scodec-bits to 1.1.16 (#1572) 2020-06-16 06:27:03 -05:00
Ben Carman
041f805730
Callback rework (#1542) 2020-06-15 17:30:08 -05:00
Nadav Kohen
6b1973264e
Fixed all walletTest threads not being closed (#1552) 2020-06-15 10:50:53 -05:00
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