public int getMessageStackSize() {
    return txValues.messageFrameStack().size();
  }
Returns the message stack size.

@return the message stack size
evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java