Allow NULL keystore to actually work

This commit is contained in:
miketout
2018-10-13 21:03:47 -07:00
parent 51848bbce5
commit 6c621e0e43
4 changed files with 7 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
CKey key;
if (pprivKey)
key = *pprivKey;
else if (!keystore->GetKey(address, key))
else if (!keystore || !keystore->GetKey(address, key))
return false;
uint256 hash;