Closed jmcanterafonseca-iota closed 3 years ago
Describe the bug
panic: missing dependencies for function "github.com/gohornet/hornet/plugins/restapi/v1".init.0.func1 (/app/plugins/restapi/v1/plugin.go:152): missing type: *tipselect.TipSelector
To Reproduce
A coordinator with the following configuration:
{ "restAPI": { "jwtAuth": { "enabled": false, "salt": "HORNET" }, "excludeHealthCheckFromAuth": false, "permittedRoutes": [ "/health", "/mqtt", "/api/v1/info", "/api/v1/tips", "/api/v1/messages/:messageID", "/api/v1/messages/:messageID/metadata", "/api/v1/messages/:messageID/raw", "/api/v1/messages/:messageID/children", "/api/v1/messages", "/api/v1/transactions/:transactionID/included-message", "/api/v1/milestones/:milestoneIndex", "/api/v1/milestones/:milestoneIndex/utxo-changes", "/api/v1/outputs/:outputID", "/api/v1/addresses/:address", "/api/v1/addresses/:address/outputs", "/api/v1/addresses/ed25519/:address", "/api/v1/addresses/ed25519/:address/outputs", "/api/v1/treasury" ], "whitelistedAddresses": [ "127.0.0.1", "::1" ], "bindAddress": "0.0.0.0:14265", "powEnabled": true, "powWorkerCount": 1, "limits": { "bodyLength": "1M", "maxResults": 1000 } }, "dashboard": { "auth": { "sessionTimeout": "72h", "username": "admin", "passwordHash": "a4d321654d646f4035bb1aafa98f9f032587a277e76a997a9422a830b471eb90", "passwordSalt": "c953f8eaf20f19531bc3403fee0ebb9b747ed2aeacf612b453307b0f68592e00" } }, "db": { "engine": "rocksdb", "path": "/app/db/coo.db", "autoRevalidation": false }, "snapshots": { "depth": 50, "interval": 200, "fullPath": "snapshots/private-tangle/full_snapshot.bin", "deltaPath": "snapshots/private-tangle/delta_snapshot_coo.bin", "deltaSizeThresholdPercentage": 50.0 }, "protocol": { "networkID": "private-tangle", "bech32HRP": "iota-pt", "minPoWScore": 2000, "milestonePublicKeyCount": 1, "publicKeyRanges": [ { "key": "4091cf2db23901c049d49c4333d16624c83477460788d6578af6bd1663eb24bc", "start": 0, "end": 0 } ] }, "pow": { "refreshTipsInterval": "5s" }, "requests": { "discardOlderThan": "15s", "pendingReEnqueueInterval": "5s" }, "tangle": { "milestoneTimeout": "30s" }, "tipsel": { "maxDeltaMsgYoungestConeRootIndexToCMI": 8, "maxDeltaMsgOldestConeRootIndexToCMI": 13, "belowMaxDepth": 15, "nonLazy": { "retentionRulesTipsLimit": 100, "maxReferencedTipAge": "3s", "maxChildren": 30, "spammerTipsThreshold": 0 }, "semiLazy": { "retentionRulesTipsLimit": 20, "maxReferencedTipAge": "3s", "maxChildren": 2, "spammerTipsThreshold": 30 } }, "node": { "alias": "coo", "profile": "auto", "disablePlugins": [ "URTS", "WarpSync", "Spammer", "Autopeering", "ZMQ", "MQTT", "Prometheus", "Profiling" ], "enablePlugins": [ "Coordinator", "RestAPI" ] }, "coordinator": { "stateFilePath": "coordinator.state", "interval": "10s", "checkpoints": { "maxTrackedMessages": 10000 }, "tipsel": { "minHeaviestBranchUnreferencedMessagesThreshold": 20, "maxHeaviestBranchTipsPerCheckpoint": 10, "randomTipsPerCheckpoint": 2, "heaviestBranchSelectionTimeout": "100ms" }, "quorum": { "enabled": false, "groups": {}, "timeout": "2s" } }, "p2p": { "bindMultiAddresses": [ "/ip4/0.0.0.0/tcp/15600" ], "connectionManager": { "highWatermark": 10, "lowWatermark": 5 }, "gossipUnknownPeersLimit": 4, "identityPrivateKey": "73386a41872df8d006e7a3a9929b4000f676ff021517c15ecb3f80083f1a3b8f4c02f3a9d8e6184eb972109201022f08add1d3f6d30be3b6985572b08aceb99b", "peerStore": { "path": "./p2pstore/coo" }, "reconnectInterval": "30s" }, "p2pdisc": { "advertiseInterval": "30s", "maxDiscoveredPeerConns": 4, "rendezvousPoint": "between-two-vertices", "routingTableRefreshPeriod": "60s" }, "logger": { "level": "info", "disableCaller": true, "encoding": "console", "outputPaths": [ "stdout" ] } }
Expected behavior Coordinator up and running
Environment information: Official Docker
Fixed by #1107
Describe the bug
To Reproduce
A coordinator with the following configuration:
Expected behavior Coordinator up and running
Environment information: Official Docker