feat(log): remove core dependency and update core interface to be dependency free (backport #21045) (#21089)

Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2024-07-26 13:43:42 +02:00
committed by GitHub
co-authored by Aaron Craelius Julien Robert
parent 6bd057bd09
commit fcb808a54c
139 changed files with 591 additions and 486 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
"cosmossdk.io/core/log"
"cosmossdk.io/log"
)
// FinalizeBlockFunc is the function that is called by the OE to finalize the
+2 -2
View File
@@ -8,7 +8,7 @@ import (
abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
"github.com/stretchr/testify/assert"
coretesting "cosmossdk.io/core/testing"
"cosmossdk.io/log"
)
func testFinalizeBlock(_ context.Context, _ *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error) {
@@ -16,7 +16,7 @@ func testFinalizeBlock(_ context.Context, _ *abci.FinalizeBlockRequest) (*abci.F
}
func TestOptimisticExecution(t *testing.T) {
oe := NewOptimisticExecution(coretesting.NewNopLogger(), testFinalizeBlock)
oe := NewOptimisticExecution(log.NewNopLogger(), testFinalizeBlock)
assert.True(t, oe.Enabled())
oe.Execute(&abci.ProcessProposalRequest{
Hash: []byte("test"),