|
@ -36,20 +36,12 @@ namespace dev |
|
|
namespace eth |
|
|
namespace eth |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
template <class T> inline std::set<T> toSet(std::vector<T> const& _ts) |
|
|
|
|
|
{ |
|
|
|
|
|
std::set<T> ret; |
|
|
|
|
|
for (auto const& t: _ts) |
|
|
|
|
|
ret.insert(t); |
|
|
|
|
|
return ret; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
using LogBloom = h512; |
|
|
using LogBloom = h512; |
|
|
|
|
|
|
|
|
struct LogEntry |
|
|
struct LogEntry |
|
|
{ |
|
|
{ |
|
|
LogEntry() {} |
|
|
LogEntry() {} |
|
|
LogEntry(RLP const& _r) { address = (Address)_r[0]; topics = (h256s)_r[1]; data = _r[2].toBytes(); } |
|
|
LogEntry(RLP const& _r) { address = (Address)_r[0]; topics = _r[1].toVector<h256>(); data = _r[2].toBytes(); } |
|
|
LogEntry(Address const& _address, h256s const& _ts, bytes&& _d): address(_address), topics(_ts), data(std::move(_d)) {} |
|
|
LogEntry(Address const& _address, h256s const& _ts, bytes&& _d): address(_address), topics(_ts), data(std::move(_d)) {} |
|
|
|
|
|
|
|
|
void streamRLP(RLPStream& _s) const { _s.appendList(3) << address << topics << data; } |
|
|
void streamRLP(RLPStream& _s) const { _s.appendList(3) << address << topics << data; } |
|
|