mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
More block info added
This commit is contained in:
parent
e9dcc0fc42
commit
72279c5340
5 changed files with 85 additions and 30 deletions
|
@ -94,7 +94,7 @@ class lambda_t {
|
|||
}
|
||||
|
||||
using node = boost::make_recursive_variant<
|
||||
std::nullptr_t, std::string, int, double, bool,
|
||||
std::nullptr_t, std::string, int, double, bool, uint64_t, uint32_t,
|
||||
internal::lambda_t<boost::recursive_variant_>,
|
||||
std::shared_ptr<internal::object_t<boost::recursive_variant_>>,
|
||||
std::map<const std::string, boost::recursive_variant_>,
|
||||
|
|
|
@ -32,6 +32,18 @@ class render_node: public boost::static_visitor<std::string> {
|
|||
return ss.str();
|
||||
}
|
||||
|
||||
std::string operator()(const uint64_t& value) const {
|
||||
std::stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string operator()(const uint32_t& value) const {
|
||||
std::stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string operator()(const bool& value) const {
|
||||
return value ? "true" : "false";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue