Skip to content

Commit

Permalink
chore: rename message to blob (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp authored Nov 29, 2022
1 parent dcd66f7 commit f76d026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ func CommitFromProto(cp *tmproto.Commit) (*Commit, error) {

// Data contains all the available Data of the block.
// Data with reserved namespaces (Txs, IntermediateStateRoots, Evidence) and
// Celestia application specific Messages.
// Celestia application specific Blobs.
type Data struct {
// Txs that will be applied by state @ block.Height+1.
// NOTE: not all txs here are valid. We're just agreeing on the order first.
Expand Down Expand Up @@ -1069,7 +1069,7 @@ type Blob struct {
// namespace it will use in the namespaced Merkle tree.
NamespaceID namespace.ID

// Data is the actual data contained in the message
// Data is the actual data of the blob.
// (e.g. a block of a virtual sidechain).
Data []byte

Expand Down
2 changes: 1 addition & 1 deletion types/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ func TestBlockIDEquals(t *testing.T) {
assert.False(t, blockIDEmpty.Equals(blockIDDifferent))
}

func TestMessagesIsSorted(t *testing.T) {
func TestBlobsByNamespaceIsSorted(t *testing.T) {
sortedBlobs := []Blob{
{
NamespaceID: []byte{1, 2, 3, 4, 5, 6, 7, 8},
Expand Down

0 comments on commit f76d026

Please sign in to comment.