X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcfg.go;h=9d94953d319a1ae1ecee17cf9d64d090ad5fab4f;hb=97b64e04266a9abe0e468532d066bb9f36a5f0cf;hp=946243396b7403c99aa499e22fd870a123516365;hpb=98a96b86eeac871a1b528e4833dd696864c3a9ae;p=nncp.git diff --git a/src/cfg.go b/src/cfg.go index 9462433..9d94953 100644 --- a/src/cfg.go +++ b/src/cfg.go @@ -82,6 +82,7 @@ type CallJSON struct { OnlineDeadline *uint `json:"onlinedeadline,omitempty"` MaxOnlineTime *uint `json:"maxonlinetime,omitempty"` WhenTxExists *bool `json:"when-tx-exists,omitempty"` + NoCK *bool `json:"nock"` AutoToss *bool `json:"autotoss,omitempty"` AutoTossDoSeen *bool `json:"autotoss-doseen,omitempty"` @@ -284,6 +285,9 @@ func NewNode(name string, cfg NodeJSON) (*Node, error) { if callCfg.WhenTxExists != nil { call.WhenTxExists = *callCfg.WhenTxExists } + if callCfg.NoCK != nil { + call.NoCK = *callCfg.NoCK + } if callCfg.AutoToss != nil { call.AutoToss = *callCfg.AutoToss }