Skip to content

Commit

Permalink
Remove the Hash and Height
Browse files Browse the repository at this point in the history
- We're returning the whole object in the evernt, no longer needed to read out hash and height.
  • Loading branch information
sondreb committed May 14, 2020
1 parent 2111993 commit 4f8af1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/Blockcore/EventBus/CoreEvents/BlockConnected.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ public class BlockConnected : EventBase
{
public ChainedHeaderBlock ConnectedBlock { get; }

public string Hash { get; set; }

public int Height { get; set; }

public BlockConnected(ChainedHeaderBlock connectedBlock)
{
this.ConnectedBlock = connectedBlock;
this.Hash = this.ConnectedBlock.ChainedHeader.HashBlock.ToString();
this.Height = this.ConnectedBlock.ChainedHeader.Height;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class NodeHostSettings
public int ApiPort { get; set; }

/// <summary>
/// If true then the node will add and start the SignalR feature. This should never be enabled if node is accessible to the public.
/// If true then the node will add and start the Web Socket feature. This should never be enabled if node is accessible to the public.
/// </summary>
public bool EnableWS { get; private set; }

Expand Down

0 comments on commit 4f8af1b

Please sign in to comment.