Commit graph

13858 commits

Author SHA1 Message Date
Gregory Sanders
f2161b411f Improve raw peg-in creation logic/help and add basic tests 2018-11-14 21:58:02 -05:00
Gregory Sanders
64611df613
Merge #462: Add stevenroose key to contib
db5cd8e Add stevenroose key to contib (Steven Roose)

Pull request description:

Tree-SHA512: 44aee075687c6e6b0ed306a56a9752afa386f7819e1981c1deacf68267ee24584b171f01687278eaf2ec135617ec082509b41f27dea2dda493ae407f6185f715
2018-11-08 12:07:27 -05:00
Steven Roose
db5cd8ed55 Add stevenroose key to contib
Also removed jtimon's
2018-11-08 16:59:11 +00:00
Steven Roose
99cc03457f
Merge #460: fix endianness of getrawtransaction issuance entropy, add basic test
8b0ebae27 fix endianness of getrawtransaction issuance entropy, add basic test (Gregory Sanders)
2018-11-08 16:57:33 +00:00
Gregory Sanders
8b0ebae271 fix endianness of getrawtransaction issuance entropy, add basic test 2018-11-08 11:20:42 -05:00
Gregory Sanders
f58d62eca9
Merge #454: Changed tutorial bitcoin config file to work with new core v0.17 format
16113d8 Removed redundant .rpcuser, .rpcpassword (wintercooled)
370e797 Changed config file to work with new core v0.17 format as well as previous versions (wintercooled)

Pull request description:

  Core v0.17 now handles config file settings differently and loads the existing config settings as mainnet and not regtest. This means our e1 and e2 nodes in the tutorial can't connect.

  This PR makes the bitcoin.conf file compatible with both formats. Without this change the tutorial code fails if you are using bitcoind v0.17.0.0.

  REF: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.17.0.md

  If the following options are not in a section, they will only apply to mainnet:
  `addnode=`, `connect=`, `port=`, `bind=`, `rpcport=`, `rpcbind=` and `wallet=`.
  The options to choose a network (`regtest=` and `testnet=`) must be specified
  outside of sections.

  Tested with bitcoind v0.16.2.0 and v0.17.0.0

Tree-SHA512: 3136703da17570e410c1e86ab31f3ac0bca60847164dd10e75a57affd1b7b67fdfbba2be5437ad9ffdd5428c10f6d34073d3e746f55dacda858ab47b517cd3fc
2018-11-02 14:21:37 -04:00
wintercooled
16113d89db Removed redundant .rpcuser, .rpcpassword 2018-11-01 15:28:46 +00:00
wintercooled
370e797615 Changed config file to work with new core v0.17 format as well as previous versions 2018-11-01 14:29:55 +00:00
Gregory Sanders
3d2a0852a7
Merge #440: Updated README links to point to new elementsproject.org content.
61cbc79 changed link name for easier diff (wintercooled)
ef0451d added link to schnorr as research (wintercooled)
2652861 Modified intro text (wintercooled)
f68ba12 Modified what is elements? text (wintercooled)
b0ac198 changed link from github.io to .org (wintercooled)
7b2a331 Amend links to point at new .org site content (wintercooled)
2018-10-31 13:05:18 -04:00
Gregory Sanders
3cf35fc090
Merge #410: compact block RPC calls
c3fe935 test compact block rpcs (Gregory Sanders)
c3cbe6e compact block RPC calls (Gregory Sanders)

Pull request description:

  Combined with https://github.com/ElementsProject/elements/pull/339 should be pretty powerful for speed of block proposal transmission.

Tree-SHA512: 305256b844a28542bb720ab86a36ec91982dd41c4d8e455e34ad3db12daa6e8b25ccfe2728fa514812655c2121c8d1d36e71f2af83f86b2de6c5d0c72541d79e
2018-10-29 12:46:35 -04:00
wintercooled
61cbc79ad5 changed link name for easier diff 2018-10-26 12:39:01 +01:00
wintercooled
ef0451dba4 added link to schnorr as research 2018-10-26 12:37:32 +01:00
wintercooled
2652861554 Modified intro text 2018-10-20 10:06:30 +01:00
wintercooled
f68ba12ebd Modified what is elements? text 2018-10-20 09:59:57 +01:00
wintercooled
b0ac198046 changed link from github.io to .org 2018-10-20 09:52:07 +01:00
wintercooled
7b2a3311f1 Amend links to point at new .org site content 2018-10-20 09:27:10 +01:00
Gregory Sanders
71890d50e5
Merge #426: update secp256k1-zkp b2dca3ae19dbe47ba978a79a5022a289efbdc846
f3a424f update secp256k1-zkp 2318f18a909dffa1f962e681db7ff62cdc0f8e1c (Gregory Sanders)
2018-10-08 17:23:09 +09:00
Gregory Sanders
f3a424f0d0 update secp256k1-zkp 2318f18a909dffa1f962e681db7ff62cdc0f8e1c 2018-10-08 15:03:18 +09:00
Gregory Sanders
138d55a1b7
Merge #425: peg-in re-checking cleanup and fixes
abb7b01 Add some additional comments about BitcoindRPCCheck infra (Gregory Sanders)
62c56f4 don't set CorruptionPossible for peg-in transaction failure (Gregory Sanders)
5d7cd6b parameterize the rpc re-checking of peg-in validation failed blocks (Gregory Sanders)
ba8d498 bitcoind rpc check should take main locks for mapBlockIndex, check for key (Gregory Sanders)
2018-10-03 18:35:25 +09:00
Gregory Sanders
abb7b015d8 Add some additional comments about BitcoindRPCCheck infra 2018-10-03 17:57:57 +09:00
Gregory Sanders
62c56f446a don't set CorruptionPossible for peg-in transaction failure
Previously the peg-in validation logic was done in script
which means it was handled correctly by mempool/block logic.

We then moved these checks outside of script, which means
that these checks aren't multithreaded/batched, and return
the specific error states, including CorruptionPossible.

This means that blocks are never considered permanently invalid and
in certain circumstances tried in an infinite loop.

Instead we mark it as a normal failure, and allow the peg-in invalid
block queue to take care of it instead.
2018-10-03 17:57:57 +09:00
Gregory Sanders
5d7cd6b843 parameterize the rpc re-checking of peg-in validation failed blocks 2018-10-03 17:57:42 +09:00
Gregory Sanders
ba8d498559 bitcoind rpc check should take main locks for mapBlockIndex, check for key 2018-10-03 17:57:42 +09:00
Gregory Sanders
3634aaf98f
Merge #422: feature_fedpeg.py bitcoind parent2 uses rpc cookie auth
f6528e9 feature_fedpeg.py parent2 uses rpc cookie auth (Gregory Sanders)
f349e17 allow start_node to create/take cookie files (Gregory Sanders)
2018-10-03 17:55:59 +09:00
Gregory Sanders
f9231a2102
Merge #418: qa: Use bitcoind as parent in Travis tests
7e02f39 qa: Use bitcoind as parent in Travis tests (Steven Roose)
2018-10-03 17:42:23 +09:00
Gregory Sanders
f6528e96f2 feature_fedpeg.py parent2 uses rpc cookie auth 2018-10-03 10:01:27 +09:00
Gregory Sanders
f349e17298 allow start_node to create/take cookie files 2018-10-03 10:01:26 +09:00
Steven Roose
7e02f39d90 qa: Use bitcoind as parent in Travis tests 2018-10-02 15:18:21 +01:00
Gregory Sanders
5fe9c2cbeb
Merge #419: fix various undefined behavior and null ptr dereferences
0184575 re-enable failing travis build (Gregory Sanders)
f6875bd fix use after free in peg-in mempool logic (Gregory Sanders)
ea9d92d only try to set best chain if signal is registered (Gregory Sanders)
61c5491 fix undefined behavior in confidential commitment serialization (Gregory Sanders)
2018-09-27 12:11:56 -04:00
Gregory Sanders
c3fe935f91 test compact block rpcs 2018-09-27 10:16:14 -04:00
Gregory Sanders
ba1c470aef
Merge #417: require 0.16.3 parent Core node
c37eb06 require 0.16.3 parent Core node (Gregory Sanders)
2018-09-27 10:11:31 -04:00
Gregory Sanders
feaa552728
Merge #421: QA: feature_fedpeg.py: Remove re-implementation of sync_all
9b030c1 QA: feature_fedpeg.py: Remove re-implementation of sync_all (Jorge Timón)
2018-09-27 10:08:54 -04:00
Jorge Timón
9b030c10a7
QA: feature_fedpeg.py: Remove re-implementation of sync_all
(redundant and inferior)
2018-09-27 01:54:16 +02:00
Gregory Sanders
0184575333 re-enable failing travis build 2018-09-26 18:05:15 -04:00
Gregory Sanders
f6875bd32c fix use after free in peg-in mempool logic 2018-09-26 18:05:15 -04:00
Gregory Sanders
98ff65a02a
Merge #415: qa: Support using bitcoind in fedpeg test
9545ca3 qa: Disable -printtoconsole in feature_fedpeg (Steven Roose)
1451e86 qa: Remove pegging.py in favor of feature_fedpeg.py (Steven Roose)
498877e QA: Fix feature_fedpeg.py to work with 0.17.0 (Jorge Timón)
a7736f8 QA: Add test to get 'Given claim_script is not hex' error (Jorge Timón)
35364b6 rpc: reject non-hex strings for claim_script (Gregory Sanders)
07c617b qa: Support using bitcoind in fedpeg test (Steven Roose)
729969d QA: Special case for regtest, expected to be used for binaries that lack -chain (Jorge Timón)
2018-09-26 15:32:44 -04:00
Steven Roose
9545ca3e48 qa: Disable -printtoconsole in feature_fedpeg 2018-09-26 20:17:05 +01:00
Steven Roose
1451e86f70 qa: Remove pegging.py in favor of feature_fedpeg.py 2018-09-26 19:30:07 +01:00
Jorge Timón
498877e871
QA: Fix feature_fedpeg.py to work with 0.17.0 2018-09-26 19:06:09 +02:00
Jorge Timón
a7736f8749
QA: Add test to get 'Given claim_script is not hex' error 2018-09-26 19:05:43 +02:00
Gregory Sanders
35364b6746
rpc: reject non-hex strings for claim_script 2018-09-26 19:05:42 +02:00
Steven Roose
07c617bccd
qa: Support using bitcoind in fedpeg test
This ports the functionality from pegging.py to the feature_fedpeg.py
test.  The following two commands are not equivalent:

$ ./qa/rpc-tests/pegging.py dir/to/bitcoin

$ ./qa/pull-tester/rpc-tests.py feature_fedpeg --parent_bitcoin \
    --parent_binpath=bin/to/bitcoin/bitcoind
2018-09-26 19:05:41 +02:00
Jorge Timón
729969d63d
QA: Special case for regtest, expected to be used for binaries that lack -chain 2018-09-26 19:05:04 +02:00
Gregory Sanders
ea9d92d453 only try to set best chain if signal is registered 2018-09-26 12:09:57 -04:00
Gregory Sanders
61c54913c9 fix undefined behavior in confidential commitment serialization 2018-09-25 19:57:36 -04:00
Gregory Sanders
c37eb06b94 require 0.16.3 parent Core node 2018-09-25 12:17:50 -04:00
Jorge Timón
1920d8480e
Merge #413: [backport] Fix crash bug with duplicate inputs within a transaction
05c8066 Fix crash bug with duplicate inputs within a transaction (Suhas Daftuar)
2018-09-19 22:27:43 +02:00
Suhas Daftuar
05c8066c8e Fix crash bug with duplicate inputs within a transaction
Introduced by #9049
2018-09-19 11:27:25 -04:00
Jorge Timón
8b037a3913
Merge #407: Replace median fee rate with feerate percentiles
61064b3 Replace median fee rate with feerate percentiles (Marcin Jachymiak)
2018-09-17 03:43:14 +02:00
Gregory Sanders
7927e8763a
Merge #400: 2WP: Verify number of transactions in SPV proof
85eb502 2WP: Verify number of transactions in SPV proof (Steven Roose)
621b52f Check parent RPC version on startup (Steven Roose)
7bfb100 expose CBlockIndex::nTx in getblock(header) (Gregory Sanders)
2018-09-16 18:12:06 -07:00