Skip to content
Snippets Groups Projects
Unverified Commit 0144e51e authored by Wolfgang Welz's avatar Wolfgang Welz Committed by GitHub
Browse files

Test: Set PoW difficulty in integrations tests to 2 (#552)

* set pow difficulty in integrations tests to 4

* change test-network pow difficulty to 2
parent a15f2729
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ func run(*node.Plugin) {
// assure that the PoW worker is initialized
worker := Worker()
log.Infof("%s started: difficult=%d", PluginName, difficulty)
messagelayer.MessageParser().AddBytesFilter(builtinfilters.NewPowFilter(worker, difficulty))
messagelayer.MessageFactory().SetWorker(messagefactory.WorkerFunc(DoPOW))
}
......@@ -60,7 +60,7 @@
"enablePlugins": []
},
"pow": {
"difficulty": 4,
"difficulty": 2,
"numThreads": 1,
"timeout": "10s"
},
......
......@@ -34,7 +34,7 @@ var (
// ParaFaucetTokensPerRequest defines the tokens to send up on each faucet request message.
ParaFaucetTokensPerRequest int64 = 1337
// ParaPoWDifficulty defines the PoW difficulty.
ParaPoWDifficulty = 1
ParaPoWDifficulty = 2
)
var (
......
......@@ -260,8 +260,6 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc=
github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/iotaledger/hive.go v0.0.0-20200622211038-2db5f8e0532d h1:cyxepG077Tg1wNfbhkRhXMK9WwaN4N0dDW7T8+d3oHA=
github.com/iotaledger/hive.go v0.0.0-20200622211038-2db5f8e0532d/go.mod h1:42UvBc41QBsuM7z1P1fABMonTJb7kGqkzshRebClQvA=
github.com/iotaledger/hive.go v0.0.0-20200625105326-310ea88f1337 h1:F6PzAkymPcKr1vJVK3/80wiVovjkL47c9FMjUOesXGA=
github.com/iotaledger/hive.go v0.0.0-20200625105326-310ea88f1337/go.mod h1:42UvBc41QBsuM7z1P1fABMonTJb7kGqkzshRebClQvA=
github.com/iotaledger/iota.go v1.0.0-beta.15/go.mod h1:Rn6v5hLAn8YBaJlRu1ZQdPAgKlshJR1PTeLQaft2778=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment