Browse Source

CreateSpamMsgTx fallback to "nobody"

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
0678ae169b
  1. 2
      src/main.cpp

2
src/main.cpp

@ -3530,6 +3530,8 @@ static bool CreateSpamMsgTx(CTransaction &txNew, std::vector<unsigned char> &sal
if( pwalletMain->vchDefaultKey.IsValid() ) { if( pwalletMain->vchDefaultKey.IsValid() ) {
keyID = pwalletMain->vchDefaultKey.GetID(); keyID = pwalletMain->vchDefaultKey.GetID();
strUsername = pwalletMain->mapKeyMetadata[keyID].username; strUsername = pwalletMain->mapKeyMetadata[keyID].username;
} else {
strUsername = "nobody";
} }
} }
printf("CreateSpamMsgTx: keyId = %s\n", keyID.ToString().c_str() ); printf("CreateSpamMsgTx: keyId = %s\n", keyID.ToString().c_str() );

Loading…
Cancel
Save