(chain_xact_handlers): Added head or tail handlers, using the
transaction handler `truncate_entries'.
This commit is contained in:
parent
22beb86239
commit
962e17c1a9
1 changed files with 8 additions and 0 deletions
8
main.cc
8
main.cc
|
|
@ -67,6 +67,14 @@ chain_xact_handlers(const std::string& command,
|
|||
// format_transactions write each transaction received to the
|
||||
// output stream.
|
||||
if (! (command == "b" || command == "E")) {
|
||||
if (config.head_entries || config.tail_entries)
|
||||
ptrs.push_back(formatter =
|
||||
new truncate_entries(formatter,
|
||||
config.head_entries ?
|
||||
config.head_entries :
|
||||
config.tail_entries,
|
||||
config.tail_entries));
|
||||
|
||||
// filter_transactions will only pass through transactions
|
||||
// matching the `display_predicate'.
|
||||
if (! config.display_predicate.empty())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue