Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-schnorrmultisig-activation.py
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
# If we don't do this, autoreplay protection will activate before graviton and | # If we don't do this, autoreplay protection will activate before graviton and | ||||
# all our sigs will mysteriously fail. | # all our sigs will mysteriously fail. | ||||
REPLAY_PROTECTION_START_TIME = GRAVITON_START_TIME * 2 | REPLAY_PROTECTION_START_TIME = GRAVITON_START_TIME * 2 | ||||
# Before the upgrade, Schnorr checkmultisig is rejected but forgiven if it would have been valid after the upgrade. | # Before the upgrade, Schnorr checkmultisig is rejected but forgiven if it would have been valid after the upgrade. | ||||
PREUPGRADE_SCHNORR_MULTISIG_ERROR = dict(reject_code=16, | PREUPGRADE_SCHNORR_MULTISIG_ERROR = dict(reject_code=16, | ||||
reject_reason=b'upgrade-conditional-script-failure (Dummy CHECKMULTISIG argument must be zero)') | reject_reason=b'upgrade-conditional-script-failure (Signature cannot be 65 bytes in CHECKMULTISIG)') | ||||
# Before the upgrade, ECDSA checkmultisig with non-null dummy are rejected with a non-mandatory error. | # Before the upgrade, ECDSA checkmultisig with non-null dummy are rejected with a non-mandatory error. | ||||
PREUPGRADE_ECDSA_NULLDUMMY_ERROR = dict(reject_code=64, | PREUPGRADE_ECDSA_NULLDUMMY_ERROR = dict(reject_code=64, | ||||
reject_reason=b'non-mandatory-script-verify-flag (Dummy CHECKMULTISIG argument must be zero)') | reject_reason=b'non-mandatory-script-verify-flag (Dummy CHECKMULTISIG argument must be zero)') | ||||
# After the upgrade, ECDSA checkmultisig with non-null dummy are invalid since the new mode refuses ECDSA, but still do not result in ban. | # After the upgrade, ECDSA checkmultisig with non-null dummy are invalid since the new mode refuses ECDSA, but still do not result in ban. | ||||
POSTUPGRADE_ECDSA_NULLDUMMY_ERROR = dict(reject_code=16, | POSTUPGRADE_ECDSA_NULLDUMMY_ERROR = dict(reject_code=16, | ||||
reject_reason=b'upgrade-conditional-script-failure (Only Schnorr signatures allowed in this operation)') | reject_reason=b'upgrade-conditional-script-failure (Only Schnorr signatures allowed in this operation)') | ||||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |