Skip to content

Commit 50b815f

Browse files
authored
Merge pull request #37 from renproject/fix/remove-cast-insertion
Do not force insertion when casting/broadcasting content
2 parents b6345a8 + 9993d44 commit 50b815f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

aw.go

-2
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,11 @@ func (node *Node) Run(ctx context.Context) {
135135

136136
func (node *Node) Send(ctx context.Context, signatory id.Signatory, dataType uint8, data []byte) {
137137
hash := sha256.Sum256(data)
138-
node.dht.InsertContent(hash, dataType, data)
139138
node.gossiper.Gossip(id.Hash(signatory), hash, dataType)
140139
}
141140

142141
func (node *Node) Broadcast(ctx context.Context, subnet id.Hash, dataType uint8, data []byte) {
143142
hash := sha256.Sum256(data)
144-
node.dht.InsertContent(hash, dataType, data)
145143
node.gossiper.Gossip(subnet, hash, dataType)
146144
}
147145

0 commit comments

Comments
 (0)