Пример #1
0
ptree prop_list(const transaction& transaction)
{
    const tx_type& tx = transaction;

    ptree tree;
    tree.put("hash", btc256(tx.hash()));
    tree.add_child("inputs", prop_tree_list("input", tx.inputs));
    tree.put("lock_time", tx.locktime);
    tree.add_child("outputs", prop_tree_list("output", tx.outputs));
    tree.put("version", tx.version);
    return tree;
}
Пример #2
0
ptree prop_tree(const std::vector<transaction>& transactions)
{
    ptree tree;
    tree.add_child("transactions",
        prop_tree_list("transaction", transactions));
    return tree;
}
ptree prop_tree(const chain::points_info& points_info, bool json)
{
    ptree tree;
    tree.add_child("points", prop_tree_list("points", points_info.points, json));
    tree.put("change", points_info.change);
    return tree;
}
Пример #4
0
ptree prop_tree(const std::vector<input>& inputs)
{
    auto tx_inputs = cast<input, tx_input_type>(inputs);

    ptree tree;
    tree.add_child("inputs", prop_tree_list("input", tx_inputs));
    return tree;
}
Пример #5
0
ptree prop_tree(const std::vector<header>& headers)
{
    ptree tree;
    tree.add_child("headers", prop_tree_list("header", headers));
    return tree;
}
Пример #6
0
ptree prop_tree(const std::vector<client::stealth_row>& rows)
{
    ptree tree;
    tree.add_child("stealth", prop_tree_list("match", rows));
    return tree;
}
Пример #7
0
ptree prop_tree(const std::vector<tx_output_type>& tx_outputs)
{
    ptree tree;
    tree.add_child("outputs", prop_tree_list("output", tx_outputs));
    return tree;
}
Пример #8
0
ptree prop_tree(const std::vector<history_row>& rows)
{
    ptree tree;
    tree.add_child("transfers", prop_tree_list("transfer", rows));
    return tree;
}
ptree prop_tree(const chain::stealth::list& rows, bool json)
{
    ptree tree;
    tree.add_child("stealth", prop_tree_list("match", rows, json));
    return tree;
}
Пример #10
0
ptree prop_tree(const tx_output_type::list& tx_outputs, bool json)
{
    ptree tree;
    tree.add_child("outputs", prop_tree_list("output", tx_outputs, json));
    return tree;
}
Пример #11
0
ptree prop_tree(const chain::history::list& rows, bool json)
{
    ptree tree;
    tree.add_child("transfers", prop_tree_list("transfer", rows, json));
    return tree;
}