]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cfg.go
Intermediate .nock packets step
[nncp.git] / src / cfg.go
index 946243396b7403c99aa499e22fd870a123516365..9d94953d319a1ae1ecee17cf9d64d090ad5fab4f 100644 (file)
@@ -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
                }