Wladimir J. van der Laan
91f0b506ca
test: Create test fixture for wallet
...
Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by
making the wallet tests use their own fixture.
2019-12-18 16:50:29 -06:00
Wladimir J. van der Laan
994a51d4d7
test: move accounting_tests and rpc_wallet_tests to wallet/test
...
Move the two other wallet tests to where they belong.
2019-12-18 16:50:29 -06:00
Gavin Andresen
b346588c13
Unit test doublespends in new blocks
...
As suggested by Greg Maxwell-- unit test to make sure a block
with a double-spend in it doesn't pass validation if half of
the double-spend is already in the memory pool (so full-blown
transaction validation is skipped) when the block is received.
2019-12-04 17:13:57 +00:00
Larry Ruane
a3eb2b8708
update unit tests to compute empty roots
2019-10-12 18:03:36 -06:00
Jack Grigg
6a4b8b7751
Remove libsnark from build system
2019-08-22 15:42:51 +01:00
Jack Grigg
5f84491d82
Remove libsnark code for pre-Sapling Sprout proofs
2019-08-22 15:42:47 +01:00
Daira Hopwood
bc909a7a7f
Replace http with https: in links to the MIT license.
...
Also change MIT/X11 to just MIT, since no distinction was intended.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 15:26:01 +01:00
Daira Hopwood
6db54c9861
Add MIT license to Makefiles
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 13:59:30 +01:00
Braydon Fuller
ec81c70964
tests: adds unit test for IsPayToPublicKeyHash method
2019-03-28 12:04:02 -06:00
Jonas Schnelli
4922d1c19a
Fix test_bitcoin circular dependency issue
2018-08-05 10:41:06 +01:00
Homu
2ebde5860e
Auto merge of #3326 - str4d:3058-sapling-addresses, r=str4d
...
Sapling address encodings
This PR enables Sapling keys and addresses to be passed in anywhere Sprout keys
and addresses are used. Doing so will cause crashes until those places are updated
with Sapling support.
Includes code cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#11167
- Only the `ConvertBits()` function.
- bitcoin/bitcoin#11630
Closes #3058 .
2018-06-19 05:12:50 -07:00
Jay Graber
052d640cb0
Add json test vectors for Sapling key components.
2018-06-13 10:38:32 -07:00
Jack Grigg
6b759fb092
ConvertBits() - convert from one power-of-2 number base to another.
...
Function extracted from upstream:
PR bitcoin/bitcoin#11167
Commit c091b99379b97cb314c9fa123beabdbc324cf7a4
2018-06-07 16:42:01 +12:00
Homu
b1d2a69908
Auto merge of #3202 - str4d:3058-sapling-bech32, r=str4d
...
Bech32 encoding support
Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#8578
- bitcoin/bitcoin#11167
- Only the second and third commits (first is in #3228 , fourth depends on #2390 , later ones are SegWit-specific).
- bitcoin/bitcoin#12757
- Only the change to `src/bech32.h`
Part of #3058 .
2018-05-08 09:08:37 -07:00
Sean Bowe
2f23a656fb
Add regression tests and test vectors for Sapling merkle tree
2018-05-07 13:46:06 -06:00
Pieter Wuille
10e5357e8b
Import Bech32 C++ reference code & tests
...
This includes a reformatted version of the Bech32 reference code
(see https://github.com/sipa/bech32/tree/master/ref/c%2B%2B ), with
extra documentation.
2018-05-04 10:27:11 +01:00
Pieter Wuille
29a8ade782
Prevector type
2018-04-16 07:38:36 -06:00
Homu
77669b952b
Auto merge of #2598 - str4d:2074-dbwrapper, r=str4d
...
Bitcoin 0.12+ dbwrapper improvements
Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6650
- Only refactor - excludes obfuscation
- bitcoin/bitcoin#6777
- Excluding obfuscation-related changes
- bitcoin/bitcoin#6865
- bitcoin/bitcoin#6823
- bitcoin/bitcoin#6873
- bitcoin/bitcoin#7927
- Excluding first commit (already included) and second commit (obfuscation-related)
- bitcoin/bitcoin#8467
Part of #2074 .
2018-04-03 14:11:29 -07:00
Jeff Garzik
e3da7a572d
leveldbwrapper file rename to dbwrapper.*
2018-04-03 20:40:54 +01:00
James O'Beirne
0d81464be7
Refactor leveldbwrapper
...
Was "Add chainstate obfuscation to avoid spurious antivirus detection"
Zcash: Extracted the refactor, omitting the chainstate obfuscation.
2018-04-03 20:40:54 +01:00
Jack Grigg
7346f09026
Only set multicore flags if OpenMP is available
2018-03-19 17:32:21 +01:00
Cory Fields
c459de2f03
build: Split hardening/fPIE options out
...
This allows for fPIE to be used selectively.
2017-11-30 15:17:37 +00:00
Sean Bowe
26a8f68ea8
Remove libsnark from depends system and integrate it into build system.
2017-08-02 15:49:30 +01:00
Daira Hopwood
506a21850a
Remove UPnP support. fixes #2500
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2017-07-03 08:57:05 +01:00
zkbot
f7f764e0b2
Auto merge of #2189 - bitcartel:1.0.7_with_apache_qpid, r=bitcartel
...
Add AMQP 1.0 support via Apache Qpid Proton C++ API 0.17.0
Closes #2188
2017-04-16 15:09:19 +00:00
Simon
99eb947a98
Add AMQP 1.0 support via Apache Qpid Proton C++ API 0.17.0
2017-03-25 08:51:40 -07:00
Jack Grigg
6dbd95afa1
torcontrol: Add unit tests for Tor reply parsers
2017-03-26 00:34:53 +13:00
Karl-Johan Alm
ca50af75b1
Added EVENT_CFLAGS to test makefile to explicitly include libevent headers.
2017-03-24 09:03:59 +13:00
Karl-Johan Alm
e8b6d84b9f
Added some simple tests for the RAII-style events.
2017-03-24 09:03:59 +13:00
Jonas Schnelli
a10a6e2a0e
[Univalue] add univalue over subtree
...
similar to secp256k1 include and compile univalue over a subtree
2017-02-10 02:18:51 +00:00
Jeff Garzik
f200002cf3
Add ZeroMQ support. Notify blocks and transactions via ZeroMQ
...
Continues Johnathan Corgan's work.
Publishing multipart messages
Bugfix: Add missing zmq header includes
Bugfix: Adjust build system to link ZeroMQ code for Qt binaries
2017-02-08 22:10:42 +00:00
Jack Grigg
8e0fc39097
Exclude test binaries from make install
...
Closes #1943 .
2017-01-03 11:23:21 +01:00
Sean Bowe
d92bea9888
Add tests for witness `element` and tree `last` methods. Strengthen testing by inserting a different commitment into the tree at each step.
2016-11-14 10:13:06 -07:00
Jack Grigg
08d6b02d5e
Rename libbitcoinconsensus to libzcashconsensus
...
Closes #1563
2016-10-18 16:45:37 -05:00
Sean Bowe
f0dab51cf3
Implement zkSNARK compression.
2016-08-22 00:36:12 -06:00
zkbot
d0cc00207b
Auto merge of #929 - bitcartel:zc.v0.11.2.z2_fix_717, r=ebfull
...
Fix issue #717 t
Fix issue #717 where if addrman is starved of addresses (e.g. on testnet)
the Select_() function will loop endlessly trying to find an address,
and therefore eat up 100% cpu time on the 'opencon' thread.
Solution is to (1) add a delay to the loop and (2) restrict the number
of attempts to find an address. On exiting the loop, we return
to an outer loop in net.cpp which will sleep, add seed nodes and
calculate new addresses.
2016-06-06 20:03:16 +00:00
Sean Bowe
fd7c139e37
Pass `-fopenmp` at compile-time to enable MULTICORE.
2016-05-25 15:59:59 -06:00
EthanHeilman
8375e1a3e7
Creates unittests for addrman, makes addrman testable.
...
Adds several unittests for addrman to verify it works as expected.
Makes small modifications to addrman to allow deterministic and targeted tests.
Signed-off-by: Simon <simon@bitcartel.com>
2016-05-24 11:10:54 -07:00
Alfie John
1785bdb98a
Rename libzerocash to libzcash
2016-05-24 08:36:48 +10:00
Taylor Hornby
bf2e3122ac
Remove the Merkle tree hash function's fixed point.
2016-05-16 20:20:36 -06:00
Sean Bowe
6850b45e4d
Move incremental merkle tree tests to zcash-gtest.
2016-04-28 16:10:21 -06:00
Sean Bowe
e1ff849d8d
New implementation of incremental merkle tree
...
This is a new implementation of the incremental merkle tree used by our
scheme to witness commitments to spendable value. It serves as a fixed-sized
accumulator.
This new construction has a much simpler API surface area, avoids memory
safety issues, remains pruned at all times, avoids serialization edge cases,
has more efficient insertion, and is abstract over the depth and hash
function used at the type level.
Further, it lays the groundwork for efficient "fast-forwarding" of witnesses
into the tree as the treestate is updated.
2016-04-28 16:07:52 -06:00
Jack Grigg
020bed6021
Add test vectors for Equihash
2016-04-08 13:56:00 +12:00
Sean Bowe
8466467a35
Added SHA256Compress to Bitcoin's SHA256 implementation.
2016-03-31 14:23:56 -06:00
Sean Bowe
e463edc122
Build and link libzerocash.
2016-02-15 15:28:20 -07:00
Nathan Wilcox
c4da097069
Pull over depends and build changes from zc.v0.10.0.latest. Fails to build due to new ./configure dependency for serialization stuff.
2015-12-22 09:20:42 -08:00
Casey Rodarmor
6b51b9b195
Replace boost::reverse_lock with our own.
2015-09-22 00:43:13 +00:00
Gavin Andresen
b4c219b622
Merge pull request #5964
...
9a1dcea
Use CScheduler for net's DumpAddresses (Gavin Andresen)
ddd0acd
Create a scheduler thread for lightweight tasks (Gavin Andresen)
68d370b
CScheduler unit test (Gavin Andresen)
cfefe5b
scheduler: fix with boost <= 1.50 (Cory Fields)
ca66717
build: make libboost_chrono mandatory (Cory Fields)
928b950
CScheduler class for lightweight task scheduling (Gavin Andresen)
e656560
[Qt] add defaultConfirmTarget constant to sendcoinsdialog (Philip Kaufmann)
2015-05-14 14:27:07 -04:00
Gavin Andresen
68d370bec4
CScheduler unit test
2015-05-14 12:50:41 -04:00
Wladimir J. van der Laan
2cc1372190
Merge pull request #5159
...
b649e03
Create new BlockPolicyEstimator for fee estimates (Alex Morcos)
2015-05-13 17:10:02 +02:00