message: RPC: add weight to mempool entry output
diff: @@ -374,6 +374,7 @@ static std::string EntryDescriptionString()
  return " \"vsize\" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.\n"
  " \"size\" : n, (numeric) (DEPRECATED) same as vsize. Only returned if bitcoind is started with -deprecatedrpc=size\n"
  " size will be completely removed in v0.20.\n"
  + " \"weight\" : n, (numeric) transaction weight as defined in BIP 141.\n"
  " \"fee\" : n, (numeric) transaction fee in " + CURRENCY_UNIT + " (DEPRECATED)\n"
  " \"modifiedfee\" : n, (numeric) transaction fee with fee deltas used for mining priority (DEPRECATED)\n"
  " \"time\" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT\n"
  @@ -413,6 +414,7 @@ static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPool
  info.pushKV("vsize", (int)e.GetTxSize());
  if (IsDeprecatedRPCEnabled("size")) info.pushKV("size", (int)e.GetTxSize());
  + info.pushKV("weight", (int)e.GetTxWeight());
  info.pushKV("fee", ValueFromAmount(e.GetFee()));
  info.pushKV("modifiedfee", ValueFromAmount(e.GetModifiedFee()));
  info.pushKV("time", e.GetTime());
  