Commit graph

18051 commits

Author SHA1 Message Date
Gregory Sanders
2bfabb3e4f blockheaders include block height, nodes validate it
The block height validation is gated by the startup option
`con_blockheightinheader`, accesible in custom chains only
using option `chain=<name>`. Only if set to true will this
field be (de)serialized and evaluated in consensus logic.
Otherwise the field is simply ignored, other than being
stored in memory as the default value 0.
2018-11-27 09:46:25 -05:00
Gregory Sanders
8f6bedfd4b functional framework support for CScriptNum decode 2018-11-27 09:45:15 -05:00
Gregory Sanders
823b9093e9
Merge #453: [0.17] Add OptionsCategory::ELEMENTS
2e4cb70 Mark chain params as ::CHAINPARAMS (Steven Roose)
91e48e7 Sane defaults for CHAINPARAM cli args (Steven Roose)
fdf494e Also change Elements-specific chainparams (Steven Roose)
2638df8 Set correct OptionsCategory for elements options (Steven Roose)
6ba4764 Add OptionsCategory::ELEMENTS (Steven Roose)

Pull request description:

  Attempt to group elements-specific -options together.

Tree-SHA512: 3cc669c55f657b9d20c4bc2d67d222b73649b916b45f127858f3ca20210f5589a44a0dac508d47007b7f628fc4108f5ee3011a658ff269c47b722270404a4c4f
2018-11-27 09:42:11 -05:00
Gregory Sanders
609323f7b7
Merge #468: Replace deprecated tostring with tobytes
00315c8 Replace deprecated tostring with tobytes (Carl Dong)

Pull request description:

  Upstream: https://github.com/bitcoin/bitcoin/pull/13963

Tree-SHA512: 667cb8799941e7c3a567e8c9b77b77fdf1b838d170b5de2c51618e6d1284216039cb39e44f9650b6a7de325036a0d2c80aeb9cf5387da7e183f33461a31c9727
2018-11-27 09:09:53 -05:00
Gregory Sanders
cc4b98f854
Merge #469: Add TX_TRUE output format, accept in wallet with anyonecanspendaremine
9908f9a Add TX_TRUE output format, accept in wallet with `anyonecanspendaremine` (Gregory Sanders)
2018-11-27 08:59:18 -05:00
Steven Roose
2e4cb70112 Mark chain params as ::CHAINPARAMS 2018-11-26 12:18:05 +00:00
Steven Roose
91e48e7233 Sane defaults for CHAINPARAM cli args 2018-11-20 11:33:02 +00:00
Gregory Sanders
9908f9a152 Add TX_TRUE output format, accept in wallet with anyonecanspendaremine 2018-11-15 15:12:12 -05:00
Carl Dong
00315c85bb Replace deprecated tostring with tobytes 2018-11-15 05:30:49 -08:00
Steven Roose
fdf494e060 Also change Elements-specific chainparams 2018-11-09 12:20:05 +00:00
Gregory Sanders
9196b708b3
Merge #463: Update PGP key for stevenroose
e61e78b Update PGP key for stevenroose (Steven Roose)
2018-11-08 12:08:51 -05:00
Steven Roose
e61e78b87d Update PGP key for stevenroose
Also remove jtimon's
2018-11-08 17:08:11 +00:00
Gregory Sanders
0272fb7499
Merge #456: [0.17] move most extended tests to normal
32f1bf2 move most extended tests to normal (Gregory Sanders)
2018-11-05 09:32:17 -05:00
Gregory Sanders
32f1bf26ec move most extended tests to normal 2018-11-01 14:43:44 -04:00
Steven Roose
2638df8ef4 Set correct OptionsCategory for elements options 2018-10-30 17:12:40 +00:00
Steven Roose
6ba4764d6d Add OptionsCategory::ELEMENTS 2018-10-29 19:46:17 +00:00
Gregory Sanders
48e3e957ce
Merge #449: Actually run the bitcoin functional tests with test_runner
e20b836 Actually run the bitcoin functional tests with test_runner (Gregory Sanders)

Pull request description:

  We were just re-running the other tests.

Tree-SHA512: 25d7ffada5fc97f1188cdd906b4c36cdb230ef3ec51e9db4fd199902b675db1e91d6595292ccb0b24a094055c13aae3fe076e0cfc9a09b5d718695f27344f96e
2018-10-26 12:17:41 -04:00
Gregory Sanders
e20b836aeb Actually run the bitcoin functional tests with test_runner 2018-10-26 12:00:55 -04:00
Gregory Sanders
c0d1dbc833
Merge #429: [0.17] Connect gen block tx to db, don't validate gen block
d97920c add functional test for coinbase connection to db (Gregory Sanders)
e532664 allow grabbing genesis transaction(s) when connected (Gregory Sanders)
c7e5549 [#9102] really don't validate genesis block (Gregory Sanders)
ccf40db connect genesis block transaction outputs to coin db (Gregory Sanders)

Pull request description:

  Tests should now be working.

Tree-SHA512: aa2af6637c534d7f9185e969118b52519fe0609ae79fa8f4d5213f939f9a5915f958cf93d02aa6f4a47795c87cc23c93daff3807347cb1b12a426326e6dea60e
2018-10-25 13:39:15 -04:00
Gregory Sanders
d97920caa4 add functional test for coinbase connection to db 2018-10-25 13:21:42 -04:00
Gregory Sanders
e532664298 allow grabbing genesis transaction(s) when connected 2018-10-25 12:51:53 -04:00
Gregory Sanders
c7e5549317 [#9102] really don't validate genesis block 2018-10-25 12:51:53 -04:00
Gregory Sanders
ccf40db968 connect genesis block transaction outputs to coin db 2018-10-25 12:51:53 -04:00
Gregory Sanders
866da4496b
Merge #447: pin flake8 version to avoid breaking compatibilities
77e8fa4 pin flak8 version to avoid breaking compatibilities (Gregory Sanders)

Pull request description:

  This happened upstream too.

Tree-SHA512: a6d05c86e1421c03ac38ee69c4b5ff7174d7c00b0c965fcd6016a9f9b94510e4a68dce162f4bb47a2ba5d624bfc33cc6ae53fc47264d98e117632f0a6a580bed
2018-10-25 12:08:04 -04:00
Gregory Sanders
77e8fa4ac7 pin flak8 version to avoid breaking compatibilities 2018-10-25 11:25:20 -04:00
Gregory Sanders
725e62ad36
Merge #446: Duplicate serializations of consensus objects to use as Bitcoin seria…
5b4aff7 Duplicate serializations of consensus objects to use as Bitcoin serialization (Gregory Sanders)

Pull request description:

  …lization

  This will allow us to break elements serialization in other PRs such as height in block header.

Tree-SHA512: 1c58bb6caeef8d874579abcf536c7ca4541538e85441f51709971b7c7c5ce9e48e0c6dc09626a27aed0f045fbb1fe21c756b1d3986ce75489cf06fecc16eb15b
2018-10-24 15:27:56 -04:00
Gregory Sanders
5b4aff7108 Duplicate serializations of consensus objects to use as Bitcoin serialization 2018-10-24 15:11:19 -04:00
Gregory Sanders
3d274183d2
Merge #445: [0.17] Duplicate bitcoin functional tests
ef039f0 Add travis build that tests bitcoin functional tests (Gregory Sanders)

Pull request description:

  We're going to keep these tests alive as long as possible to increase modularity/QA of the codebase.

Tree-SHA512: c0639422fe518cd9a5f6eb06f24a4c812d38bdde95f37a6787b10ab009e6ee9ff22b30ea8f79e6cf47581bd0d7577fe149f3e636c4c6f0488c9c6555730b8315
2018-10-24 11:00:37 -04:00
Gregory Sanders
e63e500658
Merge #443: [0.17] add block subsidy argument to allow different/non-inflation chains
7bac720 add block subsidy argument to allow different/non-inflation chains (Gregory Sanders)

Pull request description:

  Previously we just set this to 0 and continued, this allows tests to otherwise pass up until this point.

Tree-SHA512: e4e6ae85779a6079ccad38941b4b0dbb3362fa4d902aff5cedbea4641201646f6946cc0d140cb0fdac81c5009ff983baabebcbeeed99f089e44ad492fd6cd1ee
2018-10-24 10:57:48 -04:00
Gregory Sanders
ef039f001b Add travis build that tests bitcoin functional tests 2018-10-23 13:29:57 -04:00
Gregory Sanders
7bac720925 add block subsidy argument to allow different/non-inflation chains 2018-10-23 09:45:16 -04:00
Jorge Timón
146d80ff9d
Merge #441: rename mandatory coinbase test, add it to test_runner list
2d6f137 rename mandatory coinbase test, add it to test_runner list (Gregory Sanders)

Pull request description:

Tree-SHA512: cd35c6360cbc59db480dd4ced1d07699b947ecaede985e331a9ca389af9636e942bea29bbd8d976405f0abc1e3fe8f6fbbaa36ef1d70bdbb9267e19ce61bcfbe
2018-10-22 18:18:46 +02:00
Gregory Sanders
2d6f1374c2 rename mandatory coinbase test, add it to test_runner list 2018-10-22 09:49:07 -04:00
Gregory Sanders
101ec23faa
Merge #430: [0.17] Mandatory coinbase feature
0d20b55 add mandatory coinbase functional test (Gregory Sanders)
edb0532 add consensus.mandatory_coinbase_destination (Gregory Sanders)

Pull request description:

  Includes functional test

Tree-SHA512: e7fdf4584c5a61516778dff272c0f4c9964fee515b705c4fd3ade842954bcc7426bdaf5273a64e4b2472fedc940ead7552c0ec80b4608aac381f91a8f2356d95
2018-10-22 09:22:24 -04:00
Gregory Sanders
0d20b55374 add mandatory coinbase functional test 2018-10-18 15:17:15 -04:00
Gregory Sanders
edb053276b add consensus.mandatory_coinbase_destination 2018-10-18 15:17:15 -04:00
Gregory Sanders
de842cb58f
Merge #432: [0.17] QA: Use resgtest2 chain instead of regtest for rpc tests
a1e0c56 QA: Use resgtest2 chain instead of regtest for rpc tests (Jorge Timón)
4454c52 QA: Adapt BitcoinTestFramework for chains other than "regtest" (Jorge Timón)
a06be15 Testchains: Introduce custom chain whose constructor... (Jorge Timón)
46749eb Testchains: Qt: Simplify network/chain styles and add a default purple (Jorge Timón)
c0c1e38 Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest (Jorge Timón)
56515c3 9102: Really don't validate genesis block (Gregory Sanders)

Pull request description:

  Backport of https://github.com/bitcoin/bitcoin/pull/8994

  The tests seem to pass with:

  ```
  python3 ./test/functional/test_runner.py -j4 --extended
  ```

  Let's please try to keep all general review things on https://github.com/bitcoin/bitcoin/pull/8994 and elements-specific things here.

  Dependencies:

  - [x] [0.17] Don't edit Chainparams after initialization #427
  - [x] [0.17] Test: Fix example_test.py #434

Tree-SHA512: e216587b6f9d3a462372915e01c8eb3c65a61e4ea29f398e65a7fc03a3ea5676c4711527b5cc2c115893591e7cd5b0ecd2f1fac4faf7ef747a022e2657bc99d4
2018-10-16 14:19:47 -04:00
Jorge Timón
a1e0c56a55
QA: Use resgtest2 chain instead of regtest for rpc tests 2018-10-16 18:32:20 +02:00
Jorge Timón
4454c52ae6
QA: Adapt BitcoinTestFramework for chains other than "regtest" 2018-10-16 18:32:19 +02:00
Jorge Timón
a06be15279
Testchains: Introduce custom chain whose constructor...
...reads params from regular arguments
2018-10-16 18:32:17 +02:00
Jorge Timón
46749eba94
Testchains: Qt: Simplify network/chain styles and add a default purple
...for unkown chains
2018-10-16 18:30:08 +02:00
Jorge Timón
c0c1e38647
Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest 2018-10-16 18:30:07 +02:00
Gregory Sanders
56515c34cb
9102: Really don't validate genesis block 2018-10-16 17:03:11 +02:00
Jorge Timón
504269835d
Merge #434: [0.17] Test: Fix example_test.py
1f1c7df Test: Fix example_test.py (Jorge Timón)

Pull request description:

  Fix this useful test in -extended.

  IMO should be backported to bitcoin/0.17, but I'm not sure if it's wanted there.

Tree-SHA512: d67c186c3dd59d13ec7c9cc79ae6dfd5a0dbd2ea76a8e3b5eb0020dedd08e004929741ed7b4ac9ca2a30da10b11e73179b0967023f59892eb59cb8d68ca67294
2018-10-16 17:00:55 +02:00
Gregory Sanders
0a142d9d3c
Merge #435: [0.17] add jtimon/gsanders/stevenroose git signing keys
f9179fe add jtimon/gsanders/stevenroose git signing keys (Gregory Sanders)

Pull request description:

Tree-SHA512: d0f563c68bf1c469bd4ef6a7ef6582f96f8e06f2372ace05db06e1f1a5edea83e814e0b35f820ca2668db11e99c8b6bb6dbfde715a71766b5452f1b35c8c6868
2018-10-15 15:10:27 -04:00
Gregory Sanders
f9179fe6b4 add jtimon/gsanders/stevenroose git signing keys 2018-10-15 14:45:36 -04:00
Jorge Timón
1f1c7df5a6
Test: Fix example_test.py 2018-10-15 00:35:38 +02:00
Jorge Timón
a31ab0ec26
Merge #427: [0.17] Don't edit Chainparams after initialization
06f1b42 Don't edit Chainparams after initialization (Jorge Timón)
875a47c MOVEONLY: Move versionbits info out of versionbits.o (Jorge Timón)

Pull request description:

  This is a backport of https://github.com/bitcoin/bitcoin/pull/13311 since it's already merged, merging this in elements-0.17 should at least make the next rebase slightly easier. And since we're heavily touching chainparams in elements, I think it's a good thing.

Tree-SHA512: 177f6396a34ecf87b609b39a108cc2b1e5b49bd8d12b705a4ae0241c7a5007db754ff01d6d045ee1e6a219ec6c6767663cd98558752c83961c4aff3378aef5a2
2018-10-13 03:16:19 +02:00
Jorge Timón
06f1b422cf
Don't edit Chainparams after initialization 2018-10-12 20:51:55 +02:00
Jorge Timón
875a47cc41
MOVEONLY: Move versionbits info out of versionbits.o 2018-10-12 20:51:54 +02:00