@@ -5,24 +5,25 @@ import (
55 "testing"
66 "time"
77
8- actorutils "github.com/allora-network/allora-chain/x/emissions/keeper/actor_utils"
9- inferencesynthesis "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis"
10-
118 "cosmossdk.io/core/header"
129 "cosmossdk.io/log"
1310 cosmosMath "cosmossdk.io/math"
1411 storetypes "cosmossdk.io/store/types"
1512 "github.com/allora-network/allora-chain/app/params"
13+ alloralog "github.com/allora-network/allora-chain/log"
1614 alloraMath "github.com/allora-network/allora-chain/math"
1715 alloratestutil "github.com/allora-network/allora-chain/test/testutil"
1816 "github.com/allora-network/allora-chain/x/emissions/keeper"
17+ actorutils "github.com/allora-network/allora-chain/x/emissions/keeper/actor_utils"
18+ inferencesynthesis "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis"
1919 "github.com/allora-network/allora-chain/x/emissions/keeper/msgserver"
2020 "github.com/allora-network/allora-chain/x/emissions/module"
2121 "github.com/allora-network/allora-chain/x/emissions/module/rewards"
2222 "github.com/allora-network/allora-chain/x/emissions/types"
2323 mintkeeper "github.com/allora-network/allora-chain/x/mint/keeper"
2424 mint "github.com/allora-network/allora-chain/x/mint/module"
2525 minttypes "github.com/allora-network/allora-chain/x/mint/types"
26+
2627 "github.com/cometbft/cometbft/crypto/secp256k1"
2728 codecAddress "github.com/cosmos/cosmos-sdk/codec/address"
2829 "github.com/cosmos/cosmos-sdk/runtime"
@@ -67,7 +68,8 @@ func (s *RewardsTestSuite) SetupTest() {
6768 storeService := runtime .NewKVStoreService (key )
6869 testCtx := testutil .DefaultContextWithDB (s .T (), key , storetypes .NewTransientStoreKey ("transient_test" ))
6970 // Set logger to show logs from the rewards module too
70- logger := log .NewTestLogger (s .T ()).With ("module" , "rewards" )
71+
72+ logger := alloralog .NewTestLogger (s .T ()).With ("module" , "rewards" )
7173 ctx := testCtx .Ctx .WithHeaderInfo (header.Info {Time : time .Now ()}).WithLogger (logger ) // nolint: exhaustruct
7274 encCfg := moduletestutil .MakeTestEncodingConfig (auth.AppModuleBasic {}, bank.AppModuleBasic {}, module.AppModule {})
7375
@@ -1118,7 +1120,7 @@ func (s *RewardsTestSuite) TestIncreasingTaskRewardAlphaIncreasesImportanceOfPre
11181120// We increase alpha between the trials to prove that their worsening performance decreases regret.
11191121// This is somewhat counterintuitive, but can be explained by the following passage from the litepaper:
11201122// "A positive regret implies that the inference of worker j is expected by worker k to outperform
1121- // the network’ s previously reported accuracy, whereas a negative regret indicates that the network
1123+ // the network' s previously reported accuracy, whereas a negative regret indicates that the network
11221124// is expected to be more accurate."
11231125func (s * RewardsTestSuite ) TestIncreasingAlphaRegretIncreasesPresentEffectOnRegret () {
11241126 /// SETUP
0 commit comments