Skip to content

Commit

Permalink
Merge pull request #37 from renproject/fix/remove-cast-insertion
Browse files Browse the repository at this point in the history
Do not force insertion when casting/broadcasting content
  • Loading branch information
loongy authored Jul 24, 2020
2 parents b6345a8 + 9993d44 commit 50b815f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions aw.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ func (node *Node) Run(ctx context.Context) {

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

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

Expand Down

0 comments on commit 50b815f

Please sign in to comment.