Commit graph

2366 commits

Author SHA1 Message Date
Ben Carman
02f02fb22b
Create KeyManager Api & move SpendingInfoDb to core (#1848)
* Create KeyManager Api & move SpendingInfoDb to core

* Fix docs, remove sealed form KeyManagerApi

* Move SpendingInfoDb to core wallet api
2020-08-21 14:37:12 -05:00
Ben Carman
1d7793cc45
Only use appenders with no Logback conf (#1867) 2020-08-21 13:26:31 -05:00
Ben Carman
d6975340e0
Fix selecting Utxos twice in fundRawTransactionInternal (#1866)
* Fix selecting Utxos twice in fundRawTransactionInternal

* Simplify watch an arbitrary SPK test
2020-08-21 10:11:02 -05:00
Nadav Kohen
2a1c399838
Implement basic TLV functionality (#1847)
* Defined BigSizeUInt as in BOLT 1

* Introduced UInt16 and TLV types

* Responded to review

* Responded to review
2020-08-20 14:42:16 -05:00
rorp
773dbb702e
Watch arbitrary SPKs (#1860)
* Watch arbitrary SPKs

* fix unit tests

* fix unit tests

* one more fix

* revert the compiler parameters
2020-08-20 14:33:18 -05:00
Ben Carman
8529eb7939
Cache Travis Builds (#1859) 2020-08-20 07:06:20 -05:00
Ben Carman
0904ba4e4e
Fix V8 Migration (#1862) 2020-08-19 17:04:04 -05:00
Chris Stewart
68ec48c387
Bring back strict compiler opts (#1854) 2020-08-19 09:17:39 -05:00
Ben Carman
9a36d791dc
Fix safely broadcast a transaction twice twice test (#1851) 2020-08-19 06:20:45 -05:00
Ben Carman
7c62bb285f
Remove unnecessary parallelization in Wallet (#1823)
* Remove unnecessary parallelization in Wallet

* Fix things being called multiple times

* Move to independent function

* Move helper methods to be separate

* Move back to intermediate val
2020-08-18 15:30:52 -05:00
Ben Carman
6e2c811789
Rolling log file location (#1846)
* Rolling log file location

* Fix file name
2020-08-18 14:37:22 -05:00
rorp
874a96eb1e
Refactor wallet DB (#1798)
* Refactor wallet DB

* fix create(), update() and upsert()

* remove accout foreign key

* fix wallet fixtures

* update Postgres schema

* update SQLite schema

* fix AddressHandlingTest

* fix SQLITE_BUSY exception in TransactionProcessing

* fix RescanHandlingTest

* revert NeutrinoNodeTest

* fix SpendingInfoDAOTest

* fix SQLITE_BUSY exceptions

* fix DbManagementTest

* fix "Task rejected" Slick exceptions in Postgres mode

* responded to the PR comments
2020-08-18 13:43:12 -05:00
Ben Carman
26f47d269c
Fix server parsing for send to address (#1819) 2020-08-17 09:49:50 -05:00
Ben Carman
a3a2248aa1
Add missing route for getaddressinfo (#1834) 2020-08-17 06:27:16 -05:00
Ben Carman
667d2bc0e5
Fix case of cli command sendwithalgo (#1835) 2020-08-16 16:16:27 -05:00
Ben Carman
b1b5f0ad8d
Use database to calculate number of confirmations (#1789)
* Use database to calculate number of confirmations

* Check block is in best chain

* Use db

* Optimize getNumberOfConfirmations

* Fix compile issue for older versions

* Add better logging messages

* More logs

* Update confs sequentially
2020-08-16 16:15:13 -05:00
Ben Carman
0ca5b692dc
Fix get missing utxos (#1832) 2020-08-16 16:14:13 -05:00
Scala Steward
b13d9ce7dc
Update sbt-native-packager to 1.7.5 (#1838) 2020-08-16 09:01:16 -05:00
Scala Steward
86647d3a32
Update postgresql to 42.2.15 (#1831) 2020-08-16 08:50:26 -05:00
Ben Carman
60e82894d7
Don't wait for rescan completion to send message (#1836) 2020-08-16 08:46:36 -05:00
Ben Carman
c5f7c3d0e1
Disable logging for tests (#1839) 2020-08-16 08:16:30 -05:00
Chris Stewart
ff8f922684
Batch and execute headers for chain work calculation test case, this … (#1837) 2020-08-15 14:05:01 -05:00
Ben Carman
c9fba8ad82
Create primary key of (address, tag_type) for AddressTag table (#1828) 2020-08-15 12:52:00 -05:00
Chris Stewart
d65f68ea21
2020 08 14 issue 1829 (#1833)
* Fix O(n^2) behavior in BaseBlockchain.connectWalkBackwards, cache BlockHeader.hash after the first time it is called

* Revert a few files
2020-08-15 07:31:50 -05:00
Chris Stewart
11e08718ff
Attempt to batch checking of headers in chainTest to avoid reject exe… (#1826)
* Attempt to batch checking of headers in chainTest to avoid reject execution exceptions in the scala slick database queue

* Fix 2.12 compile issue
2020-08-15 07:23:26 -05:00
Chris Stewart
86f68b3b62
Fix address tag issue where we weren't adding tags to an address, we were replacing existing tags (#1824) 2020-08-14 10:06:28 -05:00
Ben Carman
9dc7b2c0dd
Remove default false for useLogbackConf (#1816)
* Remove default false for useLogbackConf

* Fix docs

* Set logging level to WARN for tests
2020-08-14 08:53:07 -05:00
Ben Carman
c5617f6fbe
Require utxos aren't spent when sending from outpoints (#1817) 2020-08-14 08:43:18 -05:00
Scala Steward
90138a956d
Update sbt-mdoc to 2.2.5 (#1812) 2020-08-14 08:18:37 -05:00
Ben Carman
0bd60fd6d9
Revert scalaTestPlus 3.2.1.0 -> 3.2.0.0 (#1810) 2020-08-13 14:05:52 -05:00
Chris Stewart
cad3c64cda
Output logger configuration on startup now (#1814)
* Output logger configuration on startup now

* Remove core-test/logback-test.xml and core/common-logback.xml, consolidate and move them into testkit/src/main/resources/logback.xml

* Add comment for logging configuration
2020-08-13 12:36:42 -05:00
Ben Carman
47e305e1aa
Config CLI option, datadir correctly read from config (#1807)
* Config CLI option, datadir correctly read from config

* Change --config to --conf, add docs
2020-08-13 10:53:25 -05:00
Ben Carman
cb962f4d95
Optimize unmarkUTXOsAsReserved (#1804) 2020-08-12 14:02:02 -05:00
Ben Carman
1f6e2249ea
Address Tagging/Labeling Support from CLI (#1790)
* Address Tagging/Labeling Support from CLI

* Scaladoc
2020-08-12 10:55:15 -05:00
Ben Carman
e247289c34
Make Akka log to file correctly (#1801) 2020-08-12 07:52:51 -05:00
Nadav Kohen
9e5e2634f8
Fixed Transaction Signing doc (#1800) 2020-08-12 06:26:24 -05:00
Chris Stewart
fa388c7448
Create more of a project structure in org.bitcoins.core.api, move DbR… (#1799)
* Create more of a project structure in org.bitcoins.core.api, move DbRowAutoInc into the core project

* Get website compiling again
2020-08-12 06:13:23 -05:00
Scala Steward
1e41bf02e8
Update sbt-mdoc to 2.2.4 (#1786) 2020-08-11 09:11:39 -05:00
Ben Carman
e2294414bf
Send correct version message on node start up (#1793) 2020-08-11 09:11:04 -05:00
Ben Carman
d72316722d
Bump stop timeout (#1797) 2020-08-11 09:10:06 -05:00
Ben Carman
97ddf62b9f
Send GetHeadersMessage using all of our cached headers to prevent reorgs from stalling node (#1758)
* Send GetHeadersMessage using all of our cached headers to prevent reorgs from stalling node

* Add test, improve logging

* Start with correct chains

* Simplify error, change back to createAll
2020-08-10 13:04:12 -05:00
Scala Steward
84dfb33c37
Update sbt-buildinfo to 0.10.0 (#1792) 2020-08-10 12:23:07 -05:00
dependabot[bot]
0a16a79c75
Bump prismjs from 1.20.0 to 1.21.0 in /website (#1788)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 12:22:27 -05:00
Ben Carman
bed34f453e
Use safeRewind for signWithEntropy (#1774) 2020-08-10 10:17:41 -05:00
Ben Carman
931ad6b247
Revert scalaTest to 3.2.0 (#1791) 2020-08-09 11:09:47 -05:00
Ben Carman
1a8013242b
Fix for Wallet confirmed states (#1782)
* Fix for Wallet confirmed states

* Only process if we do not have the header
2020-08-08 08:12:30 -05:00
Ben Carman
f26d9e63d8
Docs: Remove WalletApi disclaimer (#1785) 2020-08-07 14:17:14 -05:00
Ben Carman
83906d738e
Docs: Address Queue (#1776)
* Docs: Address Queue

* docs: add configuration options
2020-08-07 12:32:22 -05:00
Ben Carman
26aee5eb6b
Better return message for bitcoin-s-cli stop (#1777) 2020-08-07 12:31:58 -05:00
Scala Steward
943c9e3112
Update scalatest to 3.2.1 (#1778) 2020-08-07 07:03:42 -05:00