reject pubkey

This commit is contained in:
Léo Haf 2024-02-19 16:23:44 +01:00 committed by GitHub
parent cfe6b1f236
commit 08b4d2d1b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,9 @@ bool IsStandardTx(const CTransaction& tx, const std::optional<unsigned>& max_dat
else if ((whichType == TxoutType::MULTISIG) && (!permit_bare_multisig)) {
MaybeReject("bare-multisig");
}
else if (whichType == TxoutType::PUBKEY){
MaybeReject("bare-pubkey");
}
if (IsDust(txout, dust_relay_fee)) {
MaybeReject("dust");
}