-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2325 from steemit/2018-04-11-cleanup-signal-handling
Clean up signal handling
- Loading branch information
Showing
16 changed files
with
293 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
libraries/chain/include/steem/chain/block_notification.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include <steem/protocol/block.hpp> | ||
|
||
namespace steem { namespace chain { | ||
|
||
struct block_notification | ||
{ | ||
block_notification( const steem::protocol::signed_block& b ) : block(b) | ||
{ | ||
block_id = b.id(); | ||
block_num = block_header::num_from_id( block_id ); | ||
} | ||
|
||
steem::protocol::block_id_type block_id; | ||
uint32_t block_num = 0; | ||
const steem::protocol::signed_block& block; | ||
}; | ||
|
||
} } |
Oops, something went wrong.