danalex97 / Speer

A network discrete event simulator for peer-to-peer network modeling.
MIT License
14 stars 3 forks source link

Std membership not running when node capacity unspecified #54

Open danalex97 opened 5 years ago

danalex97 commented 5 years ago

Bug description

When running speer -config examples/config/broadcast.json with the following configuration there is no output:

{
    "lang" : "go",
    "entry" : "github.com/danalex97/Speer/examples/std/membership/StdMembershipExample",

    "nodes" : 4,

    "logFile" : "./log.json",

    "network" : {
        "transitDomains"    : 5,
        "transitDomainSize" : 5,
        "stubDomains"       : 5,
        "stubDomainSize"    : 5
    }
}

However, if we add the following lines, everything works:

    "transferInterval"  : 10,
    "capacityNodes" : [{
        "number"   : 5,
        "upload"   : 5,
        "download" : 5
    }]