Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions bitcoin/core/scripteval.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import bitcoin.core._bignum
import bitcoin.core.key
import bitcoin.core.serialize
from bitcoin.core.contrib.ripemd160 import ripemd160

# Importing everything for simplicity; note that we use __all__ at the end so
# we're not exporting the whole contents of the script module.
Expand Down Expand Up @@ -624,9 +625,7 @@ def check_args(n):
elif sop == OP_RIPEMD160:
check_args(1)

h = hashlib.new('ripemd160')
h.update(stack.pop())
stack.append(h.digest())
stack.append(ripemd160(stack.pop()))

elif sop == OP_ROT:
check_args(3)
Expand Down