message: wallet learn legacy address script
diff: @@ -248,6 +248,7 @@ static UniValue getnewminingaddress(const JSONRPCRequest& request)
  }
  CKeyID dest = newKey.GetID();
  + pwallet->LearnRelatedScripts(newKey, OutputType::LEGACY);
  pwallet->SetAddressBook(dest, label, "receive");
  