Browse Source

common changes in client

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
fbac189649
  1. 10
      libethereum/Client.cpp
  2. 2
      libethereum/Client.h

10
libethereum/Client.cpp

@ -745,6 +745,16 @@ unsigned Client::uncleCount(h256 _blockHash) const
return b[2].itemCount();
}
LocalisedLogEntries Client::logs(unsigned _watchId) const
{
try {
Guard l(m_filterLock);
return logs(m_filters.at(m_watches.at(_watchId).id).filter);
} catch (...) {
return LocalisedLogEntries();
}
}
LocalisedLogEntries Client::logs(LogFilter const& _f) const
{
LocalisedLogEntries ret;

2
libethereum/Client.h

@ -221,7 +221,7 @@ public:
virtual LocalisedLogEntries peekWatch(unsigned _watchId) const;
virtual LocalisedLogEntries checkWatch(unsigned _watchId);
virtual LocalisedLogEntries logs(unsigned _watchId) const { try { Guard l(m_filterLock); return logs(m_filters.at(m_watches.at(_watchId).id).filter); } catch (...) { return LocalisedLogEntries(); } }
virtual LocalisedLogEntries logs(unsigned _watchId) const;
virtual LocalisedLogEntries logs(LogFilter const& _filter) const;
// [EXTRA API]:

Loading…
Cancel
Save