Just Wonder
10c5b0d0fd
Fixed namespace creation.
...
Fixed mempool propagation for both old (incorrect) and new (correct) namespaces.
Version 0.16.5.4
4 years ago
kevacoin
14b739051c
Added keva operations so that they can be deccoded properly.
...
https://github.com/kevacoin-project/kevacoin/issues/13
4 years ago
Jianping Wu
9a025be151
Implemented keva_filter.
6 years ago
Jianping Wu
33bb11cdda
Re-arranged keva ops.
...
Changed genesis block reward to 0.00001 coin.
6 years ago
Jianping Wu
df20cfc6d2
WIP: implemented keva_delete.
...
Problem: after the call, the corresponding keva coin is gone!
6 years ago
Jianping Wu
e3a786f827
Fixed windows build.
...
Fixed qt build.
6 years ago
Jianping Wu
98234230d2
Added Base58 format checking for namespace.
6 years ago
Jianping Wu
e30e56ef11
OK, it was decided that MAX_SCRIPT_ELEMENT_SIZE shall be 3072.
6 years ago
Jianping Wu
45fed9568c
N for prefix of namespace.
6 years ago
Jianping Wu
66f3985021
N or M for namespace.
...
TODO: make sure it is N only!
6 years ago
Jianping Wu
1d0a0efaeb
Validated unique namespace id.
6 years ago
Jianping Wu
e23a5a6fe8
Used hash of the first TxIn as namespace id. This ensures that the namespace id is unqiue.
...
TODO: verify that the TxIn is indeed the hash of the first TxIn.
6 years ago
Jianping Wu
b363a8d80e
Base58 encoding for namespace (prefix 2, to be fixed to N)
...
Segwit P2SH-P2WPKH.
redeemScript = 0x0014{20-byte keyhash}
scriptPubKey = OP_HASH160 hash160(redeemScript) OP_EQUAL
6 years ago
Jianping Wu
148ff7fcbd
Handled OP_KEVA_* - treated them as NOP.
6 years ago
Jianping Wu
ff4cda4884
Base64 encode namespace.
6 years ago
Jianping Wu
2ba7b82896
Handled keva script with getAddress.
6 years ago
Jianping Wu
b8fa12de6b
ApplyNameTransaction.
6 years ago
Jianping Wu
194323ed89
Fixed standard.cpp compilation.
6 years ago
Jianping Wu
041c521d77
Standard.cpp handled keva script.
6 years ago
Jianping Wu
f94b3294f8
Fixed args check for keva.
6 years ago
Jianping Wu
49de399c30
Implemented writing to DB.
6 years ago
Jianping Wu
afa40c41b6
Fixed keva op.
6 years ago
Jianping Wu
97b35682e0
WIP: main.cpp compiled.
6 years ago
Jianping Wu
c56fb50b55
WIP: namespace/key
6 years ago
Jianping Wu
b112e0c795
WIP: fixed compilation errors.
6 years ago
Jianping Wu
ec2f335382
Started fixing compilation errors.
6 years ago
Jianping Wu
fb0acfc6d9
WIP: started implementing keva_namespace.
6 years ago
Jianping Wu
fac4394247
Started working on Cryptonight.
6 years ago
Jianping Wu
855dc114e9
WIP: support two OPs.
6 years ago
Jianping Wu
4837682b4d
WIP: started implementing namespace, key and value.
6 years ago
Thomas Kerin
1cdbea7f74
bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes
...
Github-Pull: #13655
Rebased-From: 417b6c1d2990ffc78c029442e027797d724a101f
6 years ago
Johnson Lau
d353dd121b
Add constant scriptCode policy in non-segwit scripts
...
This disables OP_CODESEPARATOR in non-segwit scripts (even in an unexecuted branch), and makes a positive FindAndDelete result invalid. This ensures that the scriptCode serialized in SignatureHash() is always the same as the script passing to the EvalScript.
Github-Pull: #11423
Rebased-From: 9dabfe49c066301ef75bcfcb089fd308366127c4
6 years ago
Pieter Wuille
3eaa003c88
Extend validateaddress information for P2SH-embedded witness
...
This adds new fields 'pubkeys' and 'embedded' to the RPC's output, and improves the
documentation for previously added 'witness_version' and 'witness_program' fields.
7 years ago
Pieter Wuille
985c79552c
Improve witness destination types and use them more
7 years ago
Pieter Wuille
0c8ea6380c
Abstract out IsSolvable from Witnessifier
7 years ago
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
7 years ago
practicalswift
a720b928c8
Remove includes in .cpp files for things the corresponding .h file already included
7 years ago
MeshCollider
1a445343f6
scripted-diff: Replace #include "" with #include <> (ryanofsky)
...
-BEGIN VERIFY SCRIPT-
for f in \
src/*.cpp \
src/*.h \
src/bench/*.cpp \
src/bench/*.h \
src/compat/*.cpp \
src/compat/*.h \
src/consensus/*.cpp \
src/consensus/*.h \
src/crypto/*.cpp \
src/crypto/*.h \
src/crypto/ctaes/*.h \
src/policy/*.cpp \
src/policy/*.h \
src/primitives/*.cpp \
src/primitives/*.h \
src/qt/*.cpp \
src/qt/*.h \
src/qt/test/*.cpp \
src/qt/test/*.h \
src/rpc/*.cpp \
src/rpc/*.h \
src/script/*.cpp \
src/script/*.h \
src/support/*.cpp \
src/support/*.h \
src/support/allocators/*.h \
src/test/*.cpp \
src/test/*.h \
src/wallet/*.cpp \
src/wallet/*.h \
src/wallet/test/*.cpp \
src/wallet/test/*.h \
src/zmq/*.cpp \
src/zmq/*.h
do
base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f
done
-END VERIFY SCRIPT-
7 years ago
Mark Friedenbach
cee28fbc3f
Add error string for CLEANSTACK script violation, preventing an "unknown error" if the CLEANSTACK error condition is set.
7 years ago
Pieter Wuille
c091b99379
Implement BIP173 addresses and tests
7 years ago
Jim Posen
5ddf56045a
script: Change SignatureHash input index check to an assert.
...
In the SignatureHash function, the input index must refer to a valid
index. This is not enforced equally in the segwit/non-segwit branches
and should be an assertion rather than returning a error hash.
7 years ago
Jim Posen
7a1e873b27
[script] Unit tests for IsMine
...
Does not test watch-only addresses.
7 years ago
Anthony Towns
d601f16621
Fix invalid memory access in CScript::operator+=
7 years ago
MeshCollider
592404f03f
Changing &vec[0] to vec.data(), what 9804 missed
7 years ago
Pieter Wuille
5c8ff0d448
Introduce wrappers around CBitcoinAddress
...
This patch removes the need for the intermediary Base58 type
CBitcoinAddress, by providing {Encode,Decode,IsValid}Destination
function that directly operate on the conversion between strings
and CTxDestination.
7 years ago
Jim Posen
360b464a08
Comments: More comments on functions/globals in standard.h.
7 years ago
practicalswift
64fb0ac016
Declare single-argument (non-converting) constructors "explicit"
...
In order to avoid unintended implicit conversions.
7 years ago
Marko Bencun
bb81e17355
scripted-diff: stop using the gArgs wrappers
...
They were temporary additions to ease the transition.
-BEGIN VERIFY SCRIPT-
find src/ -name "*.cpp" ! -wholename "src/util.h" ! -wholename "src/util.cpp" | xargs perl -i -pe 's/(?<!\.)(ParseParameters|ReadConfigFile|IsArgSet|(Soft|Force)?(Get|Set)(|Bool|)Arg(s)?)\(/gArgs.\1(/g'
-END VERIFY SCRIPT-
7 years ago
Gregory Maxwell
08f71c29ea
[Trivial] Add a comment on the use of prevector in script.
7 years ago
practicalswift
90d4d89230
scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal instead of the macro NULL
...
-BEGIN VERIFY SCRIPT-
sed -i 's/\<NULL\>/nullptr/g' src/*.cpp src/*.h src/*/*.cpp src/*/*.h src/qt/*/*.cpp src/qt/*/*.h src/wallet/*/*.cpp src/wallet/*/*.h src/support/allocators/*.h
sed -i 's/Prefer nullptr, otherwise SAFECOOKIE./Prefer NULL, otherwise SAFECOOKIE./g' src/torcontrol.cpp
sed -i 's/tor: Using nullptr authentication/tor: Using NULL authentication/g' src/torcontrol.cpp
sed -i 's/METHODS=nullptr/METHODS=NULL/g' src/test/torcontrol_tests.cpp src/torcontrol.cpp
sed -i 's/nullptr certificates/NULL certificates/g' src/qt/paymentserver.cpp
sed -i 's/"nullptr"/"NULL"/g' src/torcontrol.cpp src/test/torcontrol_tests.cpp
-END VERIFY SCRIPT-
7 years ago