diff --git a/blob/service.go b/blob/service.go index 53ada45450..0d1ccf0bf1 100644 --- a/blob/service.go +++ b/blob/service.go @@ -9,6 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/types" logging "github.com/ipfs/go-log/v2" + "github.com/celestiaorg/celestia-app/pkg/appconsts" "github.com/celestiaorg/celestia-app/pkg/shares" apptypes "github.com/celestiaorg/celestia-app/x/blob/types" "github.com/celestiaorg/nmt/namespace" @@ -25,10 +26,6 @@ var ( log = logging.Logger("blob") ) -// TODO(@vgonkivs): remove after bumping celestia-app -// defaultMinGasPrice is the default min gas price. -const defaultMinGasPrice = 0.001 - type Service struct { // accessor dials the given celestia-core endpoint to submit blobs. accessor *state.CoreAccessor @@ -58,7 +55,7 @@ func (s *Service) Submit(ctx context.Context, blobs []*Blob) (uint64, error) { var ( gasLimit = estimateGas(blobs...) - fee = int64(defaultMinGasPrice * float64(gasLimit)) + fee = int64(appconsts.DefaultMinGasPrice * float64(gasLimit)) b = make([]*apptypes.Blob, len(blobs)) ) diff --git a/nodebuilder/tests/blob_test.go b/nodebuilder/tests/blob_test.go index 51c2ee9d62..537e320c5a 100644 --- a/nodebuilder/tests/blob_test.go +++ b/nodebuilder/tests/blob_test.go @@ -6,12 +6,13 @@ import ( "testing" "time" - "github.com/celestiaorg/nmt/namespace" "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/peer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/celestiaorg/nmt/namespace" + "github.com/celestiaorg/celestia-node/blob" "github.com/celestiaorg/celestia-node/blob/blobtest" "github.com/celestiaorg/celestia-node/nodebuilder/node"