private function prepareTransaction(AbstractTransactionCommand $transaction, bool $force = false): void
    {
        if (!$force && (null !== $transaction->getLastMsid()) && (null !== $transaction->getLastHash())) {
            return;
        }

        $sender = $transaction->getSender();
        if (null !== $sender) {
            $resp = $this->getAccount($sender);
        } else {
            $resp = $this->getMe();
        }
        $transaction->setLastMsid($resp->getAccount()->getMsid());
        $transaction->setLastHash($resp->getAccount()->getHash());
    }