MCPcopy Create free account
hub / github.com/DNAProject/DNA / SignAndRelay

Method SignAndRelay

consensus/dbft/dbft_service.go:613–619  ·  view source on GitHub ↗
(payload *p2pmsg.ConsensusPayload)

Source from the content-addressed store, hash-verified

611}
612
613func (ds *DbftService) SignAndRelay(payload *p2pmsg.ConsensusPayload) {
614 sink := common.NewZeroCopySink(nil)
615 payload.SerializationUnsigned(sink)
616 payload.Signature, _ = signature.Sign(ds.Account, sink.Bytes())
617
618 ds.p2p.Broadcast(payload)
619}
620
621func (ds *DbftService) start() {
622 log.Debug()

Callers 4

CheckSignaturesMethod · 0.95
RequestChangeViewMethod · 0.95
TimeoutMethod · 0.95

Calls 5

BytesMethod · 0.95
NewZeroCopySinkFunction · 0.92
SignFunction · 0.92
SerializationUnsignedMethod · 0.80
BroadcastMethod · 0.45

Tested by

no test coverage detected