MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsEncrypted

Method IsEncrypted

src/wallet/walletdb.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool WalletBatch::IsEncrypted()
190{
191 DataStream prefix;
192 prefix << DBKeys::MASTER_KEY;
193 if (auto cursor = m_batch->GetNewPrefixCursor(prefix)) {
194 DataStream k, v;
195 if (cursor->Next(k, v) == DatabaseCursor::Status::MORE) return true;
196 }
197 return false;
198}
199
200bool WalletBatch::WriteOrderPosNext(int64_t nOrderPosNext)
201{

Callers 1

isEncryptedMethod · 0.80

Calls 2

GetNewPrefixCursorMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected