unit-e icon indicating copy to clipboard operation
unit-e copied to clipboard

Extract coinbase input iteration loops

Open scravy opened this issue 6 years ago • 0 comments

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

scravy avatar Mar 06 '19 20:03 scravy