This function is used for testing the stale tip eviction logic, see denialofservice_tests.cpp
| 1189 | // This function is used for testing the stale tip eviction logic, see |
| 1190 | // denialofservice_tests.cpp |
| 1191 | void UpdateLastBlockAnnounceTime(NodeId node, int64_t time_in_seconds) |
| 1192 | { |
| 1193 | LOCK(cs_main); |
| 1194 | CNodeState *state = State(node); |
| 1195 | if (state) state->m_last_block_announcement = time_in_seconds; |
| 1196 | } |
| 1197 | |
| 1198 | void PeerManagerImpl::InitializeNode(const CNode *pnode) |
| 1199 | { |