Commit graph

1727 commits

Author SHA1 Message Date
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
Scala Steward
73392dfd04 Update play-json to 2.7.4 (#605) 2019-07-12 17:38:20 -05:00
Torkel Rogstad
7a0e757bec
Merge pull request #599 from torkelrogstad/2019-07-11-cookie
Fix bug where cookie auth threw on isStartedF
2019-07-12 15:02:23 +02:00
Torkel Rogstad
5936449441
Merge pull request #593 from torkelrogstad/2019-07-10-type-identifier
Add more P2P type identifiers
2019-07-12 14:59:56 +02:00
Torkel Rogstad
af9c237c95 Fix bug where cookie auth threw on isStartedF 2019-07-12 11:05:17 +02:00
Torkel Rogstad
2c46b57b56 Add more type identifiers
In this commit we add type identifers for P2P
messages we hadn't previously implemented. Note
that these aren't used anywhere yet.
2019-07-12 11:04:15 +02:00
Torkel Rogstad
45f8baeef3
Merge pull request #596 from torkelrogstad/2019-07-11-sbt
Clean up build config and fix CI errors
2019-07-12 10:45:56 +02:00
Torkel Rogstad
741478a7b2
Merge pull request #565 from piu130/master
Remove redundant function checkResult and refactor Numbers
2019-07-11 13:01:36 +02:00
Torkel Rogstad
fd556c3628
Merge pull request #595 from rorp/eclair_testkit_fix
Some API changes for Eclair test kit
2019-07-11 12:57:48 +02:00
Torkel Rogstad
4978a7e9b9 Clean up build config
In this commit we:
1) Fix a bug where picklers.sbt did libraryDependencies := ...
    instead of libraryDependencies ++= .... This caused Scoverage
    to error, because a dependency it needed got removed.
2) Remove some unused sbt plugins and tasks/settings
3) Add more comments, that cleary explain what's happening.
2019-07-11 12:06:49 +02:00
rorp
d60f45be04 Some API changes for Eclair test kit 2019-07-10 14:04:54 -07:00
Ramon Boss
7f67bcdcca format code 2019-07-10 13:52:55 +02:00
Ramon Boss
b7cc0aa751 add scala doc and remove deprecated methods 2019-07-10 13:50:00 +02:00
Torkel Rogstad
70ce5a0ba8 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 06:33:17 -05:00
Torkel Rogstad
7d9ac9741c Change size_on_disk to a Long (#584) 2019-07-10 05:38:11 -05:00
Torkel Rogstad
6b969627de
Merge pull request #587 from torkelrogstad/2019-07-10-teskit-fix
Fix ImplicitsTest
2019-07-10 12:11:31 +02:00
Torkel Rogstad
bdfd24adc1 Fix a test we forgot to update 2019-07-10 11:39:00 +02:00
Torkel Rogstad
dcd033b3ea
Merge pull request #586 from cwaldron97/2019-07-09-Small-Windows-Tweak
Fixed Incorrect Windows Default Datadir
2019-07-10 11:28:41 +02:00
Ramon Boss
2bac31afe2 use of seperate trait Bounded 2019-07-10 08:40:12 +02:00
Ramon Boss
c3d62e1098 implement isInBound for numbers 2019-07-10 08:39:50 +02:00
cwaldron97
4058b3836b fixed Default datadir 2019-07-09 17:05:55 -05:00
Torkel Rogstad
9101aece9b Process outgoing transactions (#555)
* Split wallet functionality into multiple traits

In this commit we refactor LockedWallet into multiple traits
that provide functionality related to a subset of total wallet
functionality. This has the benefit of making it clear which
methods are helper methods that are only intended to be used
in a very specific setting, and which methods are part of the
internal wallet API that other parts of the wallet can use.

* Rework TransactionOutput and TransactionOutPoint to case classes

* Add extension methods for flattening lists of assertions

* Segregate confirmed and unconfirmed balance methods

* Add test for FutureUtil.sequentially

* Add trace logging of balance fetching

* Process outgoing TXOs

Move TX processing into separate trait, add internal API method

Unify DB representation of TXOs

    Prior to this commit we stored TXO information
    across diferent tables, with joins and tuples
    needed a bunch of places to keep track of
    everything we needed. In this commit we unify
    the tables, leaving us with only one table for
    TXOs.
2019-07-09 06:25:24 -05:00
Chris Stewart
3556788cc6
Fix issue with testkit not being able to be resolved since we could n… (#579)
* Fix issue with testkit not being able to be resolved since we could not find db-commons dep

* Avoid publishing aggregate project
2019-07-09 06:01:52 -05:00
Torkel Rogstad
cc62f0d547
Merge pull request #581 from cwaldron97/2019-07-08-rpcport
Change default RPC port from 18332 to 18443
2019-07-09 11:18:01 +02:00
cwaldron97
9c11c83d6c changed default rpcport from 18332 to 18443 2019-07-08 15:46:22 -05:00
cwaldron97
9bbd4c0ad1 New doc for Windows users (#572)
* new doc for windows Users

* Update docs/windows-users.md

Co-Authored-By: Torkel Rogstad <torkel@rogstad.io>

* Update docs/windows-users.md

Co-Authored-By: Torkel Rogstad <torkel@rogstad.io>

* additional changes to Windows guide. Need to figure out how to structure if I want to add to contributing instead

* Update windows-users.md
2019-07-08 15:01:23 -05:00
Chris Stewart
d00dff5645
Reorg handling in chain project (#548)
* Implement 'IndexedSeqLike' on Blockchain data structure to give us access to the scala collection methods we know and love

* Implement ability to handle reorgs in Blockchain.connectTip()

* Add another test case for where block B and C are at the same height as each other, with B being the best block hash. When block D comes in, it is built on top of block C so that means our best block hash should switch to C and then to D after D is connected

* Add more unit tests to Blockchain reorg handling

* Address torkel's code review
2019-07-08 08:33:45 -05:00
rorp
d73322a76e Fix CI builds for Eclair RPC (#576) 2019-07-08 05:42:27 -05:00
Kai Brünnler
ec5280a0c7 remove duplicate duplicate check :) (#575) 2019-07-04 14:54:46 -05:00
Torkel Rogstad
85df7cc57d
Merge pull request #573 from torkelrogstad/2019-07-04-nodewithwallettest
Add more diagnostics to NodeWithWalletTest to hunt down CI failure
2019-07-04 14:15:08 +02:00
Torkel Rogstad
4d2562db8d
Merge pull request #566 from torkelrogstad/2019-07-03-bloop-mdoc
Add main method for running Mdoc
2019-07-04 11:31:54 +02:00
Torkel Rogstad
bbfb2992a0 Add more diagnostics to NodeWithWalletTest to hunt down CI failure 2019-07-04 11:17:46 +02:00
Torkel Rogstad
f82f32173d
Merge pull request #563 from cwaldron97/2019-07-02-Windows-implementation-for-bitcoind
Add windows compatability to bitcoind RPC client
2019-07-04 10:19:45 +02:00
cwaldron97
6d366084e7 fixed silly issue with DEFAULT_BITCOIND_LOCATION 2019-07-03 16:10:17 -05:00
cwaldron97
5f3dee9874 testing exception message for CI 2019-07-03 15:21:57 -05:00
cwaldron97
f0951afa6a hopefully fixing RuntimeException 2019-07-03 15:15:20 -05:00
Chris Stewart
efd53ac56e
Remove useless unit test in eclair project (#568) 2019-07-03 14:49:23 -05:00
cwaldron97
2a25c564f3 fixed windows issues 2019-07-03 14:27:16 -05:00
rorp
854242b462 [WIP] New Eclair RPC client (#535)
* [WIP] New Eclair RPC client

* channel, close, connect, getinfo, open, peers

* allchannels, allnodes, allupdates

* audit, channels, findroutetonode, forceclose, updaterelayfee

* Initial version of createinvoice

* ShortChannelId: improved error handling and scaladoc

* addressed the PR comments

* parseinvoice, payinvoice, getsentinfo, getreceivedinfo, sendtonode, sendtoroute

* unit tests

* addressed the PR comments

* ws, usablebalances, channelstats, networkfees, getinvoice, listinvoices

* addressed PR comments

* change eclair URL

* cleanup

* addressed comments

* fidex compiler warnings

* Eclair 0.3.1

* scaladoc

* cleanup
2019-07-03 13:38:56 -05:00
Torkel Rogstad
2640b3dc77 Add main method for running Mdoc
This allows working on the website without
opening sbt at all. bloop run docs -- --watch
compiles all Mdoc sources and outputs it into
the correct directory.
2019-07-03 16:04:17 +02:00
Torkel Rogstad
57d4ae51fc
Merge pull request #564 from torkelrogstad/2019-07-03-scaladoc-fix
Move Xsource flag into commonCompilerOpts
2019-07-03 12:55:43 +02:00
Ramon Boss
bd12ca10b8 add comment about checking required range in apply 2019-07-03 11:55:15 +02:00
Ramon Boss
17aac6c111 remove redundant function checkResult 2019-07-03 11:48:47 +02:00
Torkel Rogstad
1968b825c1 Move Xsource flag into commonCompilerOpts
For the last few builds publishing snapshots has failed.
This is because Scaladocs haven't been compiling with
the Xsource flag, which we need for 2.11/2.12 compat
reasons.
2019-07-03 11:21:19 +02:00
cwaldron97
10bc08411d need to figure out DOS regex handling 2019-07-02 15:53:18 -05:00
cwaldron97
2decb60021 started changes need to fix that it looks for bitcoind.exe 2019-07-02 13:45:04 -05:00
Chris Stewart
f7753fcaea
Add case for empty bloom filter (#561) 2019-07-02 10:39:22 -05:00