MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / newProvideService

Function newProvideService

blockproducer/chain_test.go:70–81  ·  view source on GitHub ↗
(
	nonce pi.AccountNonce, signer *asymmetric.PrivateKey,
	contract proto.AccountAddress,
)

Source from the content-addressed store, hash-verified

68}
69
70func newProvideService(
71 nonce pi.AccountNonce, signer *asymmetric.PrivateKey,
72 contract proto.AccountAddress,
73) (
74 t *types.ProvideService, err error,
75) {
76 t = types.NewProvideService(&types.ProvideServiceHeader{
77 Nonce: nonce,
78 })
79 err = t.Sign(signer)
80 return
81}
82
83func TestChain(t *testing.T) {
84 Convey("Given a new block producer chain", t, func() {

Callers 1

TestChainFunction · 0.85

Calls 2

NewProvideServiceFunction · 0.92
SignMethod · 0.65

Tested by

no test coverage detected