Commit graph

2151 commits

Author SHA1 Message Date
Ben Carman
113f97946c Fix V8 Migration (#1862) 2020-08-19 17:04:04 -05:00
Chris Stewart
22b7a19366 Bring back strict compiler opts (#1854) 2020-08-19 09:17:39 -05:00
Ben Carman
f187a8c7d5 Fix safely broadcast a transaction twice twice test (#1851) 2020-08-19 06:20:45 -05:00
Ben Carman
a3f1399e95 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
29e380856b Rolling log file location (#1846)
* Rolling log file location

* Fix file name
2020-08-18 14:37:22 -05:00
rorp
b5a40035ce 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
cfd6f4fa79 Fix server parsing for send to address (#1819) 2020-08-17 09:49:50 -05:00
Ben Carman
4d46094d72 Add missing route for getaddressinfo (#1834) 2020-08-17 06:27:16 -05:00
Ben Carman
9e8e57505c Fix case of cli command sendwithalgo (#1835) 2020-08-16 16:16:27 -05:00
Ben Carman
f7b9c5722f 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
a34599b7e8 Fix get missing utxos (#1832) 2020-08-16 16:14:13 -05:00
Scala Steward
b103042789 Update sbt-native-packager to 1.7.5 (#1838) 2020-08-16 09:01:16 -05:00
Scala Steward
c7f310df11 Update postgresql to 42.2.15 (#1831) 2020-08-16 08:50:26 -05:00
Ben Carman
6131f29f15 Don't wait for rescan completion to send message (#1836) 2020-08-16 08:46:36 -05:00
Ben Carman
ffa1f04d7f Disable logging for tests (#1839) 2020-08-16 08:16:30 -05:00
Chris Stewart
380adb5cdb Batch and execute headers for chain work calculation test case, this … (#1837) 2020-08-15 14:05:01 -05:00
Ben Carman
562f789504 Create primary key of (address, tag_type) for AddressTag table (#1828) 2020-08-15 12:52:00 -05:00
Chris Stewart
c9f78a2a40 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
48e3cb8e14 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
2445003503 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
48a7f6f86e 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
403ed33dbd Require utxos aren't spent when sending from outpoints (#1817) 2020-08-14 08:43:18 -05:00
Scala Steward
1c21c8837f Update sbt-mdoc to 2.2.5 (#1812) 2020-08-14 08:18:37 -05:00
Ben Carman
4f7c61301c Revert scalaTestPlus 3.2.1.0 -> 3.2.0.0 (#1810) 2020-08-13 14:05:52 -05:00
Chris Stewart
792da6e92f 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
701afe348a 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
099c33ff02 Optimize unmarkUTXOsAsReserved (#1804) 2020-08-12 14:02:02 -05:00
Ben Carman
62e9e08cf6 Address Tagging/Labeling Support from CLI (#1790)
* Address Tagging/Labeling Support from CLI

* Scaladoc
2020-08-12 10:55:15 -05:00
Ben Carman
b3a8f1d76b Make Akka log to file correctly (#1801) 2020-08-12 07:52:51 -05:00
Nadav Kohen
5fc354fc7b Fixed Transaction Signing doc (#1800) 2020-08-12 06:26:24 -05:00
Chris Stewart
ae81dd3bb3 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
fa1cae2265 Update sbt-mdoc to 2.2.4 (#1786) 2020-08-11 09:11:39 -05:00
Ben Carman
4932315cbc Send correct version message on node start up (#1793) 2020-08-11 09:11:04 -05:00
Ben Carman
8c9c95bca8 Bump stop timeout (#1797) 2020-08-11 09:10:06 -05:00
Ben Carman
c3dc52ce90 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
305841f232 Update sbt-buildinfo to 0.10.0 (#1792) 2020-08-10 12:23:07 -05:00
dependabot[bot]
66c4b2c4ef 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
b6306a4caa Use safeRewind for signWithEntropy (#1774) 2020-08-10 10:17:41 -05:00
Ben Carman
346bbf4078 Revert scalaTest to 3.2.0 (#1791) 2020-08-09 11:09:47 -05:00
Ben Carman
4ab65abec4 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
013deeaddc Docs: Remove WalletApi disclaimer (#1785) 2020-08-07 14:17:14 -05:00
Ben Carman
d52c78d37a Docs: Address Queue (#1776)
* Docs: Address Queue

* docs: add configuration options
2020-08-07 12:32:22 -05:00
Ben Carman
0bf0655335 Better return message for bitcoin-s-cli stop (#1777) 2020-08-07 12:31:58 -05:00
Scala Steward
c15d3eadb4 Update scalatest to 3.2.1 (#1778) 2020-08-07 07:03:42 -05:00
Scala Steward
519a2b5791 Update scalacheck-1-14 to 3.2.1.0 (#1779) 2020-08-07 07:03:10 -05:00
Ben Carman
9b2daff38b Replace localhost with 127.0.0.1 automatically (#1772) 2020-08-06 18:24:48 -05:00
Chris Stewart
620fa7f3c9 Add synchronous version of StartStop (#1771)
* Add synchronous version of StartStop

* Use ben's suggestion of StartStopAsync extending StartStop
2020-08-06 18:24:12 -05:00
Ben Carman
b523a813d1 Allow NonWitness and Witness UTXOs in same InputPSBTMap (#1761) 2020-08-06 17:58:43 -05:00
Ben Carman
ce2601002e Have wallet shuffle inputs and outputs (#1721) 2020-08-05 16:03:27 -05:00
Ben Carman
deeddf3249 Drop older headers on chain update (#1763) 2020-08-05 14:14:21 -05:00