Commit Graph

11739 Commits

Author SHA1 Message Date
TomZ 695044ffc0 Import new OP_CHECKDATASIG/VERIFY 2018-11-08 10:48:53 +01:00
TomZ 687d0fae78 Make script more robust 2018-11-03 19:31:45 +01:00
TomZ b8a6c54a51 Make block-height hard fork detection easy 2018-11-03 19:31:22 +01:00
TomZ 5ed4a3a817 update compiler warnings 2018-11-02 20:47:20 +01:00
TomZ 7b76d177e8 Remove chain obfuscation misfeature. 2018-11-02 20:42:45 +01:00
TomZ a664542e48 revert part of the changes made in the branch 2018-10-30 22:36:48 +01:00
TomZ 155f2aa6c2 Merge branch '2018.01' 2018-10-30 22:36:40 +01:00
TomZ e279ec3110 Create release-branch 2018-10-30 22:33:36 +01:00
TomZ 1bf8574ad5 Add seeder 2018-10-30 20:57:57 +01:00
TomZ d63b2fd955 Make versioning more modern 2018-10-30 11:21:43 +01:00
TomZ d8dfec2c26 Make test a bit more stable 2018-10-22 13:08:35 +02:00
TomZ e50384f421 Make invalidateblock work a bit better 2018-10-22 00:08:11 +02:00
TomZ 030ee2c99b fix concurrent access 2018-10-21 20:57:09 +02:00
TomZ 90f635e8ec Add a test for a cornercase of appendHeader and fix it. 2018-10-21 20:38:34 +02:00
TomZ fdd693541e Make the UTXO have some limits "configurable"
This change makes the limits be static variables, which means they are
only settable once for a process. The only usecase so far is to use much
smaller limits in testing situations.
2018-10-21 13:21:24 +02:00
TomZ d8adc57786 Make pruning atomic swap the old for the new DB
This allows queries like RPC and mempool-accept to continue
even during a prune (we just use the 'old' DB) and when its
done the last active query will delete the old DB.

This assumes a sane filesystem where you can rename a file that
is in use.
2018-10-21 10:52:40 +02:00
TomZ d616c70678 Fix possible memleak 2018-10-13 21:33:31 +02:00
TomZ 82d2651d4f Fix copy/paste error and add some more sanity checks
Also fix insert() usage in unit test to not hit that new assert
2018-10-13 21:33:17 +02:00
TomZ 669338402c Don't let exceptions change behaviour 2018-10-13 20:50:45 +02:00
TomZ 76383d6961 Reject due to double spend 2018-10-13 00:19:12 +02:00
TomZ d17e297e0a fix misdiagnosed error RPC message 2018-10-12 23:55:49 +02:00
TomZ 66efccc81b Better logging 2018-10-12 23:13:42 +02:00
TomZ 6b20196529 Fix regression in py tests, caches work again 2018-10-12 23:13:42 +02:00
TomZ 33b699a0b2 Make the numbers match the GUI labels 2018-10-11 21:45:40 +02:00
TomZ 492e1ded3d upgrade some of the most printed wallet debug lines 2018-10-11 21:45:40 +02:00
TomZ 5e91b276d3 Fix off-by one that made unit tests fail on 1-core dockers. 2018-10-11 21:45:40 +02:00
TomZ 9ccb1c1463 Cleanups and fixes 2018-10-11 19:50:09 +02:00
TomZ b399027002 Integrate with docker.io more 2018-10-11 17:36:57 +02:00
TomZ ab08bfa914 Fixlets in unit test setup 2018-10-11 17:36:36 +02:00
TomZ ee034b3cbf Push updates to docker 2018-10-11 16:27:17 +02:00
TomZ 91f9c5128a Make sure we specify type to avoid regressions 2018-10-11 16:27:04 +02:00
TomZ 6b597195de be more complete 2018-10-11 16:27:00 +02:00
TomZ e033eb6e85 Use scoped var instead of global 2018-10-11 16:26:55 +02:00
TomZ 145a67cd92 Update rpc tests to flowee changes 2018-10-11 16:26:50 +02:00
TomZ 627a0758a4 fix reindex-required detection 2018-10-11 16:26:47 +02:00
TomZ ef89fbc2ef Follow change in parsing of -regtest
Flowee changed in that regtest has to be given on the commandline
allowing different config files for different chains.
So pass the regtest on the commandline.
2018-10-11 16:26:42 +02:00
TomZ 1b8c1a586f Allow API server to be disabled via option 2018-10-11 16:26:36 +02:00
TomZ 3fbc2e89f1 Speed up UTXO, replace mutex with lock-free list 2018-10-08 22:30:21 +02:00
TomZ 72edc63afb Fixes in comments 2018-10-08 22:30:21 +02:00
TomZ be1c403586 port unit test and add benchmark 2018-10-08 22:30:21 +02:00
TomZ db42928884 [GUI] Print download numbers more detailed 2018-10-08 22:26:50 +02:00
TomZ e3d3f469d7 Have the same startup change in bitcoin-cli 2018-10-06 21:08:22 +02:00
TomZ a2928b91eb Simplify
On all mature operating systems and filesystems creation of a 1GB file
will not actually use that data, only when we start using blocks does
the disk space get used.
As such this is a premature optimization that Core added and I ported to
Flowee which this commit removes.

Additionally, increase the block file size to 1GiB
2018-10-05 20:49:44 +02:00
TomZ e8b6b8879f Remove obsolete code as we assume modern versions of Qt. 2018-10-05 20:28:27 +02:00
TomZ 7511b0e47f Have an upper limit for the amount of files we keep open 2018-10-05 20:27:42 +02:00
TomZ f94dc926db Logging updates
Add informational log at startup about header-height
2018-09-25 18:24:49 +02:00
TomZ a22cae12ae Make having open mapped files more smart.
Instead of having a magic 10 open files, we now have a scheduled
run that closes all mapped files 30 seconds after last usage.
This allows many files to be opened with extremely low overhead and
cost (they are not actually loaded until needed, and even then only
per 4K page).
2018-09-25 18:22:57 +02:00
TomZ 0fe7749733 Make finding config file more sane
We inherited the design from Core that you can put in your config
file which chain you will follow (testnet, regtest).
This has the effect that you can't have different config files for
different chains and that we always read the fallback location for
all chains. Especially the last one is just harmful.

So, regtest/testnet can only be selected from commandline.
If you choose one of those, it will look for a flowee.conf in the
related subdir (flowee/regtest/flowee.conf for instance) and NOT
for the global one. The global one is only ever read for mainnet.
2018-09-25 18:22:57 +02:00
TomZ 0627585647 Fix debug level 2018-09-25 00:07:00 +02:00
TomZ 9fc1ef6705 Fix clang warnings 2018-09-25 00:07:00 +02:00