| 88 | } |
| 89 | |
| 90 | size_t BlockChainState::DeltaState::next_stack_index_for_amount(Amount amount) const { |
| 91 | auto pg = m_parent_state->next_stack_index_for_amount(amount); |
| 92 | auto git = m_global_amounts.find(amount); |
| 93 | return (git == m_global_amounts.end()) ? pg : git->second.size() + pg; |
| 94 | } |
| 95 | |
| 96 | // We do not allow reading outputs added in the context of this delta state |
| 97 | // Thus we enforce no dependent transactions in the same block (order can still affect future blocks) |
no test coverage detected