unit-e
unit-e copied to clipboard
Extract coinbase input iteration loops
As per the review of #654 we want to extract the transaction input iteration logic. The accepted design is to add a
template <typename Callable>
void ForEachInput(Callable &func) {
}
to CTransaction which does the offset-by-one-in-case-of-coinbase-to-skip-meta-input logic. This idea was suggested by @cornelius