Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra logs for payments #1047

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
decode hex
dmanc committed Dec 20, 2024
commit 57881ce6cb4384389a9bfe22d07d281acaaa74e0
7 changes: 6 additions & 1 deletion disperser/apiserver/disperse_blob_v2.go
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ import (
dispv2 "github.com/Layr-Labs/eigenda/disperser/common/v2"
"github.com/Layr-Labs/eigenda/encoding"
"github.com/Layr-Labs/eigenda/encoding/rs"
"github.com/ethereum/go-ethereum/common/hexutil"
)

func (s *DispersalServerV2) DisperseBlob(ctx context.Context, req *pb.DisperseBlobRequest) (*pb.DisperseBlobReply, error) {
@@ -41,8 +42,12 @@ func (s *DispersalServerV2) DisperseBlob(ctx context.Context, req *pb.DisperseBl
return nil, api.NewErrorInternal(err.Error())
}

publicKeyBytes, err := hexutil.Decode(blobHeader.PaymentMetadata.AccountID)
if err != nil {
return nil, api.NewErrorInternal(fmt.Sprintf("failed to decode public key: %v", err))
}
s.logger.Debug("received a new blob dispersal request",
"accountId", blobHeader.PaymentMetadata.AccountID,
"accountId", publicKeyBytes,
"blobSizeBytes", len(data),
"quorums", req.GetBlobHeader().GetQuorumNumbers(),
)