Exemplo n.º 1
0
        private void SignAndRelay(ConsensusPayload payload)
        {
            ContractParametersContext sc;

            try
            {
                sc = new ContractParametersContext(payload);
                wallet.Sign(sc);
            }
            catch (InvalidOperationException)
            {
                return;
            }
            sc.Verifiable.Scripts = sc.GetScripts();
            localNode.RelayDirectly(payload);
        }
Exemplo n.º 2
0
        private void SignAndRelay(ConsensusPayload payload)
        {
            SignatureContext sc;

            try
            {
                sc = new SignatureContext(payload);
            }
            catch (InvalidOperationException)
            {
                return;
            }
            wallet.Sign(sc);
            sc.Signable.Scripts = sc.GetScripts();
            localNode.RelayDirectly(payload);
        }
Exemplo n.º 3
0
        private void SignAndRelay(ConsensusPayload payload)
        {
            ReportNeoBlockchain reportObj = new ReportNeoBlockchain("[NeoConsensusService-SignAndRelay]");

            ContractParametersContext sc;

            try
            {
                sc = new ContractParametersContext(payload);
                wallet.Sign(sc);
            }
            catch (InvalidOperationException)
            {
                return;
            }
            sc.Verifiable.Scripts = sc.GetScripts();
            localNode.RelayDirectly(payload);

            reportObj.appendElapsedTime();
        }