Skip to content

Commit

Permalink
Try to align behaviour of makeairdropfile with signmessage.
Browse files Browse the repository at this point in the history
  • Loading branch information
anchaj committed Aug 1, 2021
1 parent 1469583 commit a9a3fd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wallet/rpcdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,15 +794,15 @@ UniValue makeairdropfile(const UniValue& params, bool fHelp)
for (std::vector<std::pair<int64_t, CKeyID> >::const_iterator it = vKeyBirth.begin(); it != vKeyBirth.end(); it++) {
const CKeyID& keyid = it->second;
std::string strAddr = EncodeDestination(CTxDestination(keyid));
std::string strDelimiter = "-";
std::string message (bscAddress);
message.append("-");
message.append(strAddr);

CKey key;
if (pwalletMain->GetKey(keyid, key)) {
CHashWriter ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << bscAddress;
ss << strDelimiter;
ss << strAddr;
ss << message;

std::vector<unsigned char> vchSig;
if(key.SignCompact(ss.GetHash(), vchSig)) {
Expand Down

0 comments on commit a9a3fd6

Please sign in to comment.