@Override
  public int getSize() {
    if (size == -1) {
      memoizeHashAndSize();
    }
    return size;
  }
Returns the size in bytes of the encoded transaction.

@return the size in bytes of the encoded transaction.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java