Skip to content

Commit

Permalink
feat: append data market to submission bytes if flag enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
anomit committed Nov 4, 2024
1 parent 133ade7 commit 2b05d1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/service/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ func (s *server) SubmitSnapshot(ctx context.Context, submission *pkgs.SnapshotSu
}
log.Debugln("Sending submission with ID: ", submissionId.String())

submissionBytes := append(submissionIdBytes, subBytes...)
submissionBytes := submissionIdBytes
if config.SettingsObj.DataMarketInRequest {
submissionBytes = append(submissionBytes, []byte(config.SettingsObj.DataMarketAddress)...)
}
submissionBytes = append(submissionBytes, subBytes...)

s.writeSemaphore <- struct{}{}
go func() {
Expand Down

0 comments on commit 2b05d1f

Please sign in to comment.