-
Notifications
You must be signed in to change notification settings - Fork 83
SegWit #104
base: master
Are you sure you want to change the base?
SegWit #104
Conversation
1 similar comment
Nice! Thanks a bunch. concept ACK Does the default-off sync test work on segwit or segwit2x testnet chains? |
Hi, SegWit aside the default-off
This problem was introduced with changes made in commit 5475db7. Will add some fixes for this. |
259c42e
to
24097bb
Compare
1 similar comment
Hi, The most recent commit to this PR successfully validates 1179472 blocks of the testnet3 chain.
Test performed with |
lib/script_names.c
Outdated
|
||
for (i = 0; i < ARRAY_SIZE(opnames); i++) { | ||
for (i = 0; i < ARRAY_SIZE(opnames); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indent changes
lib/script_sign.c
Outdated
|
||
/* match fromPubKey against templates, to find what pubkey[hashes] | ||
/* match fromPubKey against templates, to find what pubkey[hashes] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
test/Makefile.am
Outdated
@@ -10,9 +10,9 @@ AM_CPPFLAGS = -DTEST_SRCDIR=\"$(top_srcdir)/test\" \ | |||
-I$(top_srcdir)/include \ | |||
-I$(top_srcdir)/external/secp256k1/include | |||
|
|||
noinst_LIBRARIES= libtest.a | |||
check_LTLIBRARIES = libtest.la | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a noinst lib. Why change to libtool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the check_
prefix did not work with the LIBRARIES
primary but I was mistaken. Reading the automake manual I now see that:
The special prefix ‘check_’ indicates that the objects in question should not be built until the ‘make check’ command is run. Those objects are not installed either.
The current primary names are ‘PROGRAMS’, ‘LIBRARIES’, ‘LTLIBRARIES’, ‘LISP’, ‘PYTHON’, ‘JAVA’, ‘SCRIPTS’, ‘DATA’, ‘HEADERS’, ‘MANS’, and ‘TEXINFOS’.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, check_
prefix has slightly negative value versus noinst_
, because it reduces the amount of code built by default, which prevents immediate notification of test breakage caused by a non-test code bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest commit reverts check_
prefix to noinst_
|
||
#include "picocoin-config.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was dropped. Not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running test/script.c
through iwyu tool would suggest so.
test/script.c
Outdated
const char* scriptSigString, | ||
const char* scriptPubKeyString, | ||
const unsigned int test_flags, | ||
int64_t nValue) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: non-standard indent versus rest of project.
Hi, Non-standard indentations noted. .clang-format config seems to be doing some strange things. Will fix. |
Hi,
This PR adds SegWit functionality to picocoin.
All json test files in
test/data
directory copied from bitcoin core 14.2