| 83 | auto &state() { return state_; } |
| 84 | auto allowToAllocate() const { return allowToAllocate_; } |
| 85 | ChainVer commitChainVer() const { |
| 86 | if (options_.isSyncing) { |
| 87 | return options_.commitChainVer; |
| 88 | } else if (type() == UpdateType::COMMIT) { |
| 89 | return commitIO_.commitChainVer; |
| 90 | } else { |
| 91 | return updateIO_.key.vChainId.chainVer; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | CoTask<void> complete() const { co_await baton_; } |
| 96 | void setResult(Result<uint32_t> result) { |