1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
new database
fift/func bugfixes
This commit is contained in:
ton 2019-11-15 18:02:37 +04:00
parent 950e292264
commit e30d98eb30
110 changed files with 6102 additions and 2075 deletions

View file

@ -93,6 +93,9 @@ class TestNode : public td::actor::Actor {
};
void run_init_queries();
char cur() const {
return *parse_ptr_;
}
bool get_server_time();
bool get_server_version(int mode = 0);
void got_server_version(td::Result<td::BufferSlice> res, int mode);
@ -152,8 +155,10 @@ class TestNode : public td::actor::Actor {
void got_block_proof(ton::BlockIdExt from, ton::BlockIdExt to, int mode, td::BufferSlice res);
bool do_parse_line();
bool show_help(std::string command);
std::string get_word(char delim = ' ');
td::Slice get_word(char delim = ' ');
td::Slice get_word_ext(const char* delims, const char* specials = nullptr);
bool get_word_to(std::string& str, char delim = ' ');
bool get_word_to(td::Slice& str, char delim = ' ');
int skipspc();
std::string get_line_tail(bool remove_spaces = true) const;
bool eoln() const;
@ -164,11 +169,12 @@ class TestNode : public td::actor::Actor {
bool parse_account_addr(ton::WorkchainId& wc, ton::StdSmcAddress& addr);
static int parse_hex_digit(int c);
static bool parse_hash(const char* str, ton::Bits256& hash);
static bool convert_uint64(std::string word, td::uint64& val);
static bool convert_int64(std::string word, td::int64& val);
static bool convert_uint32(std::string word, td::uint32& val);
static bool convert_int32(std::string word, td::int32& val);
static bool convert_shard_id(std::string str, ton::ShardIdFull& shard);
static bool parse_hash(td::Slice str, ton::Bits256& hash);
static bool convert_uint64(td::Slice word, td::uint64& val);
static bool convert_int64(td::Slice word, td::int64& val);
static bool convert_uint32(td::Slice word, td::uint32& val);
static bool convert_int32(td::Slice word, td::int32& val);
static bool convert_shard_id(td::Slice str, ton::ShardIdFull& shard);
bool parse_hash(ton::Bits256& hash);
bool parse_lt(ton::LogicalTime& lt);
bool parse_uint32(td::uint32& val);
@ -177,6 +183,7 @@ class TestNode : public td::actor::Actor {
bool parse_block_id_ext(std::string blk_id_string, ton::BlockIdExt& blkid, bool allow_incomplete = false) const;
bool parse_stack_value(td::Slice str, vm::StackEntry& value);
bool parse_stack_value(vm::StackEntry& value);
bool parse_stack_values(std::vector<vm::StackEntry>& values);
bool register_blkid(const ton::BlockIdExt& blkid);
bool show_new_blkids(bool all = false);
bool complete_blkid(ton::BlockId partial_blkid, ton::BlockIdExt& complete_blkid) const;