| 67 | return true; |
| 68 | } |
| 69 | bool CPBFTMan::UpdateLocalFinBlock(const uint32_t height) { |
| 70 | { |
| 71 | LOCK(cs_finblock); |
| 72 | CBlockIndex* oldFinblock = GetLocalFinIndex(); |
| 73 | if (oldFinblock != nullptr && (uint32_t)oldFinblock->height >= height) |
| 74 | return false; |
| 75 | CBlockIndex* pTemp = chainActive[height]; |
| 76 | if (pTemp== nullptr) |
| 77 | return false; |
| 78 | |
| 79 | localFinIndex = pTemp; |
| 80 | localFinLastUpdate = GetTime(); |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | } |
| 85 | |
| 86 | bool CPBFTMan::UpdateGlobalFinBlock(const uint32_t height) { |
| 87 | { |
no test coverage detected