Closed AaronFeickert closed 10 months ago
Updates SpendTransaction::hash_bind_inner to make it static and take S1 and T as arguments.
SpendTransaction::hash_bind_inner
S1
T
Previously, the function in question was not static, and inferred S1 and T from the object. This was inconsistent and had a bad code smell.
This PR makes the function static and is explicit about all fields used in the hash.
This shouldn't affect verification, but should be tested with a reindex to confirm.
PR intention
Updates
SpendTransaction::hash_bind_inner
to make it static and takeS1
andT
as arguments.Code changes brief
Previously, the function in question was not static, and inferred
S1
andT
from the object. This was inconsistent and had a bad code smell.This PR makes the function static and is explicit about all fields used in the hash.