| 3804 | //----------------------------------------------------------------------------- |
| 3805 | |
| 3806 | uint8 *Node::GetNonceKey(uint32 nonceid) { |
| 3807 | for (uint8 i = 0; i < 8; i++) { |
| 3808 | /* make sure the nonceid matches the first byte of our stored Nonce */ |
| 3809 | if (nonceid == this->m_nonces[i][0]) { |
| 3810 | return &this->m_nonces[i][0]; |
| 3811 | } |
| 3812 | } |
| 3813 | Log::Write(LogLevel_Warning, m_nodeId, "A Nonce with id %x does not exist", nonceid); |
| 3814 | for (uint8 i = 0; i < 8; i++) { |
| 3815 | PrintHex("NONCES", (const uint8_t*)this->m_nonces[i], 8); |
| 3816 | } |
| 3817 | return NULL; |
| 3818 | } |
| 3819 | |
| 3820 | //----------------------------------------------------------------------------- |
| 3821 | // <Node::GetDeviceTypeString> |