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); }
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); }
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(); }