Commit graph

1579 commits

Author SHA1 Message Date
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
Chris Stewart
f7753fcaea
Add case for empty bloom filter (#561) 2019-07-02 10:39:22 -05:00
Torkel Rogstad
2e141b1d25
Merge pull request #560 from torkelrogstad/2019-07-02-logging
Tune down excessive logging
2019-07-02 13:57:00 +02:00
Chris Stewart
f50b55f7ec
2019 07 01 windows secp256k1 bin (#559)
* Add windows 64 bit binary

* Add more instructions to README about building windows binary

* a windows CI environment

* Add logic to detect windows os, windows binary has a different file name

* Add a signature for the windows 64 bit binary
2019-07-02 05:42:49 -05:00
Torkel Rogstad
24016b6e22 Tune down excessive logging 2019-07-02 11:22:18 +02:00
Torkel Rogstad
b56fbb9629
Merge pull request #534 from torkelrogstad/2019-06-17-wallet-transactions
Process incoming transactions
2019-07-02 11:19:57 +02:00
Torkel Rogstad
c7f53404ae Remove bad import 2019-07-01 19:04:10 +02:00
Torkel Rogstad
af6c880a24 Have sampleSome do a maximum of 10 attempts 2019-07-01 19:02:01 +02:00
Torkel Rogstad
65264279e9
Merge pull request #488 from Christewart/2019-06-02-scalameter
Add scalameter test dependency and sbt settings
2019-07-01 14:23:50 +02:00
Chris Stewart
27f31f7405 Add scalameter test dependency and sbt settings 2019-07-01 06:44:30 -05:00
Torkel Rogstad
d8e214bbbf Refactor TX processing logic and add comments re. TODOs 2019-07-01 13:37:47 +02:00
Torkel Rogstad
290abf8ef8 Add annotated type to public method 2019-07-01 13:00:05 +02:00
Torkel Rogstad
11f700ba39 Refactor hairy expression 2019-07-01 12:59:54 +02:00
Torkel Rogstad
18eb8d29b1
Merge pull request #556 from torkelrogstad/2019-06-28-logo
Add Bitcoin-S logo to git repo
2019-06-28 10:32:44 +02:00
Torkel Rogstad
abc6176040 Add Bitcoin-S logo to git repo 2019-06-28 10:28:51 +02:00
Ramon Boss
4267a982cc implement Ordered[T] instead of creating custom methods (#553)
* implement Ordered[T] instead of creating new methods for that

* remove new line

* implement Ordered in LnCurrencyUnit

* implement Ordered in MilliSatoshis

* implement Ordered in ScriptNumber
2019-06-27 09:02:34 -05:00
Torkel Rogstad
1ce2f353c4 Rebase cleanup 2019-06-27 15:34:41 +02:00
Torkel Rogstad
31715ff244 Make NodeWithWalletTest properly falsifiable 2019-06-27 15:29:21 +02:00
Torkel Rogstad
8052adb6a2 Add TX generator for non-empty output TXs 2019-06-27 15:29:21 +02:00
Torkel Rogstad
a4e982ba44 Add sampleSome method to scalacheck.Gen 2019-06-27 15:29:21 +02:00
Torkel Rogstad
d00cfabb96 Rename HDCHain.toAddress 2019-06-27 15:28:08 +02:00
Torkel Rogstad
647e5e429c Rename internal helper method in LockedWallet 2019-06-27 15:28:08 +02:00
Torkel Rogstad
72e697549b Fix bad comparison in ProcessTransactionTest 2019-06-27 15:28:08 +02:00
Torkel Rogstad
aa1d104347 Replace incoming/outgoing TXs with TXOs
Rework the wallet DB model so that instead
of dealing with incoming and outgoing transactions
we deal with incoming and outgoing transaction
outputs.
2019-06-27 15:28:08 +02:00
Torkel Rogstad
df0301c1c9 Add TX generators that pay to a given SPK 2019-06-27 15:28:08 +02:00
Torkel Rogstad
937c8e70af Clean up Scaladoc and turn down logging 2019-06-27 15:28:08 +02:00
Torkel Rogstad
64ca982922 Add ProcessTransactionTest 2019-06-27 15:28:08 +02:00
Torkel Rogstad
861ed27d02 Update wallet integration tests 2019-06-27 15:28:08 +02:00
Torkel Rogstad
ad45f7898e Get rid of compiler warnings 2019-06-27 15:28:08 +02:00
Torkel Rogstad
14037d0840 Add getUnconfirmedBalance to wallet 2019-06-27 15:28:08 +02:00
Torkel Rogstad
d8e905b4e5 Replace addUtxo with processTransaction
In this commit we replace addUtxo with
processTransaction in the wallet API. addUtxo
is kept around, but only as an internal
implementation detail.

The new flow looks like this:
1) The wallet gets notified about a new TX
    through a processTransaction call
2) It then searches through our already
    processed incoming TXs:
        if found, updates the confirmation
            status
        else, inserts it into the DB
3) We then call addUtxo, if the previous
    step resulted in a new TX in our
    DB
2019-06-27 15:28:08 +02:00
Torkel Rogstad
3ee43d25ad Move ID in UTXO DB models for more ergonomic functions 2019-06-27 15:28:08 +02:00
Torkel Rogstad
43ad64cc1b Add findTx to IncomingTxDAO 2019-06-27 15:28:08 +02:00
Torkel Rogstad
b59eda0151 Get UTXO DB unit tests passing 2019-06-27 15:28:08 +02:00
Torkel Rogstad
414c51ff1b Move WalletDAOs to testkit 2019-06-27 15:28:08 +02:00
Torkel Rogstad
91300323df Generalize DAO fixture for wallet 2019-06-27 15:28:08 +02:00
Torkel Rogstad
11644fc98a Add foreign key on UTXOs to incoming transactions 2019-06-27 15:28:08 +02:00
Torkel Rogstad
c7e783d214 Add tx tables to WalletDbManagement 2019-06-27 15:28:08 +02:00
Torkel Rogstad
eb5ff1d9c2 DB loggers exposed in logging configuration 2019-06-27 15:28:08 +02:00
Torkel Rogstad
449e618007 Add toAddress on HDChain 2019-06-27 15:28:08 +02:00
Torkel Rogstad
21f08deb18 Create DBs transactionally 2019-06-27 15:28:08 +02:00
Torkel Rogstad
5fdeee0137 Add tables for incoming and outgoing transactions 2019-06-27 15:28:08 +02:00
Torkel Rogstad
d313f3e956 Add SPK field to AddressTable 2019-06-27 15:23:23 +02:00
Torkel Rogstad
c4851c924b Move utxos into wallet test util 2019-06-27 15:23:23 +02:00
Torkel Rogstad
d98592aeb8
Merge pull request #546 from torkelrogstad/2019-06-21-aes-cfb
Use key based encryption in AesCrypt
2019-06-27 12:16:53 +02:00
Torkel Rogstad
f8b4525d7e Move util function into test where it's used' 2019-06-27 11:22:02 +02:00
Torkel Rogstad
1defcc9ad6 Respond to code review from Chris 2019-06-26 17:24:50 +02:00
Torkel Rogstad
eab5975383
Merge pull request #431 from nkohen/coin-selection
Basic Coin Selection
2019-06-26 13:13:27 +02:00
Torkel Rogstad
ff0a7776bb Fix MatchError in TxBuilder 2019-06-26 11:47:36 +02:00
Torkel Rogstad
bfd1979c80 Add XSource:2.12 flag 2019-06-26 11:27:58 +02:00