Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Unnamed namespace used to hide symbols from external translation units.
- namespace
- {
- /// This padding value represents a left-shift in digits for the subcheck number.
- /// When storing subchecks in transaction logs, we don't currently use a dedicated
- /// parameter. So we do the following:
- ///
- /// subchecknumber * SUBCHECK_INTEGER_PADDING + checknumber
- ///
- unsigned const SUBCHECK_INTEGER_PADDING = 1000;
- int CalcCheckNumber(CTransactionCheckParam const& check_param)
- {
- return check_param.SubCheckNumber * SUBCHECK_INTEGER_PADDING + check_param.CheckNumber;
- }
- } // end unnamed namespace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement