diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt old mode 100644 new mode 100755 index 5c72658ff53b5f031a70630689da7c064b15c16e..593e4252dbbe4ed0a6059969f8305db2bb9c6448 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -10,7 +10,9 @@ file(GLOB HEADERS *.h) add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS}) -target_link_libraries(${PROJECT_NAME} dap_core dap_test dap_chain_global_db) +target_link_libraries(${PROJECT_NAME} dap_core dap_test dap_chain_global_db dap_chain_gdb) + +file(COPY locale DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) add_test( NAME kelvin_node_test diff --git a/test/dap_tx_test.c b/test/dap_tx_test.c new file mode 100755 index 0000000000000000000000000000000000000000..56b778e79807510fd724fe78615b0432977dc6f5 --- /dev/null +++ b/test/dap_tx_test.c @@ -0,0 +1,270 @@ +#include <stdlib.h> +#include <stdio.h> +#include <time.h> +#include <stdlib.h> +#include <stddef.h> +#include <stdint.h> +#include <unistd.h> +#include <sys/types.h> +#include <getopt.h> +#include <signal.h> +#define __USE_XOPEN_EXTENDED +#include <ftw.h> + +#include "dap_config.h" +#include "dap_server.h" +#include "dap_http.h" +#include "dap_http_folder.h" +#include "dap_events.h" +#include "dap_enc.h" +#include "dap_enc_ks.h" +#include "dap_enc_http.h" + +#include "dap_chain.h" +#include "dap_chain_wallet.h" + +#include "dap_chain_gdb.h" + +#include "dap_chain_net.h" +#include "dap_chain_net_srv.h" + +#include "dap_chain_global_db.h" +#include "dap_chain_mempool.h" +#include "dap_chain_node_cli.h" + +#include "dap_stream_session.h" +#include "dap_stream.h" +#include "dap_stream_ctl.h" + +#include "dap_stream_ch_chain.h" +#include "dap_stream_ch_chain_net.h" + +#include "dap_common.h" +#include "dap_client_remote.h" +#include "dap_client.h" +#include "dap_http_client.h" +#include "dap_http_client_simple.h" +#include "dap_http_simple.h" +#include "dap_process_manager.h" +#include "dap_traffic_track.h" +#include "dap_file_utils.h" +#include "dap_chain_node_cli_cmd.h" + +#include "dap_tx_test.h" + +static const char *wallet_from_create_args[] = { + "wallet", + "new", + "-w", "wallet_from" +}; + +static const char *wallet_to_create_args[] = { + "wallet", + "new", + "-w", "wallet_to" +}; + +static const char *mempool_proc_args[] = { + "mempool_proc", + "-net" ,"local-testnet", + "-chain" ,"gdb" +}; + +typedef struct arg_data { + char **call_args; + char *str_reply; +} arg_data; + +void *call_com_tx_create(void *arg) { + arg_data *args = (arg_data*)arg; + com_tx_create(15, args->call_args, &(args->str_reply)); + DAP_DELETE(args->str_reply); + return NULL; +} + +static int rm_r(const char *path, const struct stat *sbuf, int type, struct FTW *ftwb){ + return remove(path); +} + +int cleanup() { + if(dap_dir_test("./locale/var/lib/global_db")){ + nftw("./locale/var/lib/global_db", rm_r, 10, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); + mkdir("./locale/var/lib/global_db", S_IRWXU | S_IRWXG | S_IRWXO); + } + if(dap_dir_test("./locale/var/lib/wallet")){ + nftw("./locale/var/lib/wallet", rm_r, 10, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); + mkdir("./locale/var/lib/wallet", S_IRWXU | S_IRWXG | S_IRWXO); + } + return 0; +} + +int dap_node_run_action(scenario_t action) { + char *str_reply = NULL; + if (action == VAIN) { + } else if (action == EMIT) { + dap_assert_PIF(com_tx_wallet(4, wallet_from_create_args, &str_reply) == 0, str_reply); + dap_test_msg(str_reply); + DAP_DELETE(str_reply); + str_reply = NULL; + + dap_assert_PIF(com_tx_wallet(4, wallet_to_create_args, &str_reply) == 0, str_reply); + dap_test_msg(str_reply); + DAP_DELETE(str_reply); + str_reply = NULL; + + dap_chain_wallet_t *l_wallet_from = dap_chain_wallet_open_file("./locale/var/lib/wallet/wallet_from.dwallet"); + dap_chain_addr_t *l_addr_from = dap_chain_wallet_get_addr(l_wallet_from); + const char *l_addr_str_from = dap_chain_addr_to_str(l_addr_from); + dap_test_msg(l_addr_str_from); + dap_chain_wallet_close(l_wallet_from); + + const char *token_decl_args[] = { + "token_decl", + "-net" ,"local-testnet", + "-chain" ,"gdb", + "token" ,"MAVRODI", + "total_supply" ,"1001000000000000", + "signs_total" ,"1", + "signs_emission","1", + "certs" ,"mavrodi-cert" + }; + + dap_assert_PIF(com_token_decl(15, token_decl_args, &str_reply) == 0, str_reply); + dap_test_msg(str_reply); + DAP_DELETE(str_reply); + str_reply = NULL; + + const char *token_emit_args[] = { + "token_emit", + "-net" ,"local-testnet", + "-chain_emission" ,"gdb", + "-chain_base_tx" ,"gdb", + "-addr" ,l_addr_str_from, + "-token" ,"MAVRODI", + "-certs" ,"mavrodi-cert", + "-emission_value" ,"1001000000000000" + }; + + dap_assert_PIF(com_token_emit(15, token_emit_args, &str_reply) == 0, str_reply); + dap_test_msg(str_reply); + DAP_DELETE(str_reply); + str_reply = NULL; + + dap_assert_PIF(com_mempool_proc(4, mempool_proc_args, &str_reply) == 0, str_reply); + dap_test_msg(str_reply); + DAP_DELETE(str_reply); + str_reply = NULL; + DAP_DELETE(l_addr_str_from); + } else if (action == TX) { + dap_chain_wallet_t *l_wallet_to = dap_chain_wallet_open_file("./locale/var/lib/wallet/wallet_to.dwallet"); + dap_chain_addr_t *l_addr_to = dap_chain_wallet_get_addr(l_wallet_to); + const char *l_addr_str_to = dap_chain_addr_to_str(l_addr_to); + dap_test_msg(l_addr_str_to); + dap_chain_wallet_close(l_wallet_to); + + const char *tx_create_args[] = { + "tx_create", + "-net" ,"local-testnet", + "-chain" ,"gdb", + "-from_wallet" ,"wallet_from", + "-to_addr" ,l_addr_str_to, + "-token" ,"MAVRODI", + "-value" ,"1000000000000", + "-tx_num" ,"200" + }; + + pthread_t thrds[5]; + arg_data args[5]; + for (int i = 0; i < 5; ++i) { + args[i].call_args = tx_create_args; + args[i].str_reply = NULL; + pthread_create(&thrds[i], NULL, call_com_tx_create, (void*)&args[i]); + } + + int status; + for (int i = 0; i < 5; ++i) { + pthread_join(thrds[i], (void**)&status); + } + DAP_DELETE(l_addr_str_to); + dap_assert_PIF(com_mempool_proc(4, mempool_proc_args, &str_reply) == 0, str_reply); + } + else if (action == CHECK) { + dap_chain_wallet_t *l_wallet_from = dap_chain_wallet_open_file("./locale/var/lib/wallet/wallet_from.dwallet"); + dap_chain_addr_t *l_addr_from = dap_chain_wallet_get_addr(l_wallet_from); + + dap_chain_wallet_t *l_wallet_to = dap_chain_wallet_open_file("./locale/var/lib/wallet/wallet_to.dwallet"); + dap_chain_addr_t *l_addr_to = dap_chain_wallet_get_addr(l_wallet_to); + + dap_ledger_t *l_ledger = dap_chain_ledger_by_net_name("local-testnet"); + size_t l_addr_tokens_size = 0; + char **l_addr_tokens = NULL; + dap_chain_ledger_addr_get_token_ticker_all_fast(l_ledger, l_addr_to, &l_addr_tokens, &l_addr_tokens_size); + dap_assert_PIF(l_addr_tokens_size > 0, "No tokens found on wallet."); + uint64_t l_balance_to = dap_chain_ledger_calc_balance(l_ledger, l_addr_to, l_addr_tokens[0]); + dap_assert_PIF(l_balance_to == 1000000000000000, "Balance TO is not equal what it must be."); + l_balance_to = dap_chain_ledger_calc_balance(l_ledger, l_addr_from, l_addr_tokens[0]); + dap_assert_PIF(l_balance_to == 1000000000000, "Balance FROM is not equal what it must be."); + DAP_DELETE(l_addr_tokens[0]); + DAP_DELETE(l_addr_tokens); + dap_chain_wallet_close(l_wallet_from); + dap_chain_wallet_close(l_wallet_to); + } + return 0; +} + +int dap_node_init() { + dap_assert_PIF(dap_common_init("locale", "locale_logs.txt") == 0, "Can't init common functions module"); + dap_assert_PIF(dap_config_init("./locale/etc") == 0, "Can't init config"); + g_config = dap_config_open("local"); + dap_assert_PIF(g_config != NULL, "Config not found"); + dap_assert_PIF(dap_server_init(1) == 0, "Can't init server"); + dap_assert_PIF(dap_http_init() == 0, "Can't init HTTP cli submodule"); + dap_http_folder_init(); + dap_assert_PIF(dap_enc_init() == 0, "Can't init encryption module"); + dap_assert_PIF(dap_enc_ks_init(false, 60 *60 * 2) == 0, "Can't init encryption key storage module"); + dap_assert_PIF(dap_chain_global_db_init(g_config) == 0, "Can't init DB"); + dap_client_init(); + dap_http_client_simple_init(); + dap_datum_mempool_init(); + dap_assert_PIF(dap_chain_init() == 0, "Can't init CA storage"); + dap_chain_wallet_init(); + dap_chain_gdb_init(); + dap_chain_net_init(); + dap_chain_net_srv_init(); + enc_http_init(); + dap_stream_init(dap_config_get_item_bool_default(g_config, "general", "debug_dump_stream_headers", false)); + dap_stream_ctl_init(DAP_ENC_KEY_TYPE_OAES, 32); + dap_http_simple_module_init(); + dap_assert_PIF(dap_chain_node_cli_init(g_config) == 0, "Can't init server for console"); + dap_stream_ch_chain_init(); + dap_stream_ch_chain_net_init(); + dap_events_init(0, 0); + dap_events_t *l_events = dap_events_new(); + dap_events_start(l_events); + dap_chain_net_load_all(); + return 0; +} + +int dap_node_deinit() { + dap_stream_deinit(); + dap_stream_ctl_deinit(); + dap_http_folder_deinit(); + dap_http_deinit(); + dap_server_deinit(); + dap_enc_ks_deinit(); + dap_db_driver_deinit(); + //dap_config_close(g_config); // sisegv + dap_common_deinit(); + return 0; +} + +void dap_tx_tests_run() { + cleanup(); + dap_node_init(); + dap_node_run_action(EMIT); + dap_node_run_action(TX); + dap_node_deinit(); + dap_node_init(); + dap_node_run_action(CHECK); + dap_node_deinit(); +} diff --git a/test/dap_tx_test.h b/test/dap_tx_test.h new file mode 100755 index 0000000000000000000000000000000000000000..8650bc5d9ed02759946190e0143831e586d52f40 --- /dev/null +++ b/test/dap_tx_test.h @@ -0,0 +1,18 @@ +#ifndef DAP_TX_TEST_H +#define DAP_TX_TEST_H + +#include "dap_test.h" + +typedef enum scenario { + VAIN = 0, + EMIT = 1, + TX = 2, + CHECK = 3 +} scenario_t; + +void dap_tx_tests_run(); +int dap_node_run_action(scenario_t); +int dap_node_init(); +int dap_node_deinit(); + +#endif // DAP_TX_TEST_H diff --git a/test/locale/etc/local.cfg b/test/locale/etc/local.cfg new file mode 100644 index 0000000000000000000000000000000000000000..4c8ba4b5b7fc94902e9afc8242e35943e4cd0dc5 --- /dev/null +++ b/test/locale/etc/local.cfg @@ -0,0 +1,42 @@ +# General section +[general] +debug_mode=true +debug_dump_stream_headers=false +wallets_path=./locale/var/lib/wallet +wallets_default=default +node_role=full +# seed mode. WARNING. Used true only when you start the new network +#seed_mode=false +auto_online=false + +# Server part +[server] +# By default you don't need to open you to the world +enabled=true +listen_address=0.0.0.0 +listen_port_tcp=8079 + +# Mempool +[mempool] +accept=false + +# VPN stream channel processing module +[vpn] +# Turn to true if you want to share VPN service from you node +enabled=false +# List of loca security access groups. Built in: expats,admins,services,nobody,everybody +access_groups=expats,services,admins +network_address=10.11.12.0 +network_mask=255.255.255.0 + +# Application Resources +[resources] +# 0 means auto detect +threads_cnt=0 +pid_path=./locale/var/run/kelvin-node.pid +log_file=./locale/var/log/kelvin-node.log +ca_folders=[./locale/var/lib/ca,./locale/share/ca] +dap_global_db_path=./locale/var/lib/global_db +dap_global_db_driver=cdb + + diff --git a/test/locale/etc/network/local-testnet.cfg b/test/locale/etc/network/local-testnet.cfg new file mode 100644 index 0000000000000000000000000000000000000000..d4928b3e8b5d6fd0e39e1f85b34ab667090fe5c5 --- /dev/null +++ b/test/locale/etc/network/local-testnet.cfg @@ -0,0 +1,16 @@ +# Kelvin Blockchain: development network +# General section +[general] +id=0xFF00000000000001 +name=local-testnet +type=testing +# Possible values: light, full, archive, master, root +node-role=full +#node-alias=addr-%node_addr% +gdb_groups_prefix=local-testnet + +#[dag-poa] +#events-sign-cert=mycert + +#[dag-pos] +#events-sign-wallet=mywallet diff --git a/test/locale/etc/network/local-testnet/chain-gdb.cfg b/test/locale/etc/network/local-testnet/chain-gdb.cfg new file mode 100644 index 0000000000000000000000000000000000000000..b96e3a717a27647d549a8fa02db298beeaf41282 --- /dev/null +++ b/test/locale/etc/network/local-testnet/chain-gdb.cfg @@ -0,0 +1,9 @@ +[chain] +id=0xf00000000000000f +name=gdb +consensus=gdb +class=gdb + +[gdb] +# Celled means sharded +celled=false diff --git a/test/locale/share/ca/kelvin.testnet.root.0.dcert b/test/locale/share/ca/kelvin.testnet.root.0.dcert new file mode 100644 index 0000000000000000000000000000000000000000..4ea141f78b3a29777dfec573daade790f7c2e871 Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.0.dcert differ diff --git a/test/locale/share/ca/kelvin.testnet.root.1.dcert b/test/locale/share/ca/kelvin.testnet.root.1.dcert new file mode 100644 index 0000000000000000000000000000000000000000..536d01a4c80945dabafe6fd7b41ffe60e70183ef Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.1.dcert differ diff --git a/test/locale/share/ca/kelvin.testnet.root.2.dcert b/test/locale/share/ca/kelvin.testnet.root.2.dcert new file mode 100644 index 0000000000000000000000000000000000000000..868cfedefda741e6948ba10de319ce819d0cdd7f Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.2.dcert differ diff --git a/test/locale/share/ca/kelvin.testnet.root.3.dcert b/test/locale/share/ca/kelvin.testnet.root.3.dcert new file mode 100644 index 0000000000000000000000000000000000000000..a60be0458cc0f83defb56cbb77059704846d5fb5 Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.3.dcert differ diff --git a/test/locale/share/ca/kelvin.testnet.root.4.dcert b/test/locale/share/ca/kelvin.testnet.root.4.dcert new file mode 100644 index 0000000000000000000000000000000000000000..33c61d9aea7f4113682bc55665f3f188a725fb05 Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.4.dcert differ diff --git a/test/locale/share/ca/kelvin.testnet.root.5.dcert b/test/locale/share/ca/kelvin.testnet.root.5.dcert new file mode 100644 index 0000000000000000000000000000000000000000..8b7591c74bb94ce115ec1eef5f1cc4b2e033d767 Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.5.dcert differ diff --git a/test/locale/share/ca/kelvin.testnet.root.6.dcert b/test/locale/share/ca/kelvin.testnet.root.6.dcert new file mode 100644 index 0000000000000000000000000000000000000000..daf6cf554504891171d502cae476813abc04bbe9 Binary files /dev/null and b/test/locale/share/ca/kelvin.testnet.root.6.dcert differ diff --git a/test/locale/share/configs/kelvin-node.cfg.tpl b/test/locale/share/configs/kelvin-node.cfg.tpl new file mode 100644 index 0000000000000000000000000000000000000000..fe187e52977ecfd84512a372de2e4daae1988651 --- /dev/null +++ b/test/locale/share/configs/kelvin-node.cfg.tpl @@ -0,0 +1,39 @@ +# General section +[general] +debug_mode=false +wallets_path=/opt/kelvin-node/var/lib/wallet +wallets_default=default +node_role=full +# seed mode. WARNING. Used true only when you start the new network +#seed_mode=false + + +# Server part +[server] +# By default you don't need to open you to the world +enabled=true +listen_address=0.0.0.0 +listen_port_tcp=8079 + +# Mempool +[mempool] +accept=false + +# VPN stream channel processing module +[vpn] +# Turn to true if you want to share VPN service from you node +enabled=false +# List of loca security access groups. Built in: expats,admins,services,nobody,everybody +access_groups=expats,services,admins +network_address=10.0.0.0 +network_mask=255.255.255.0 + +# Application Resources +[resources] +# 0 means auto detect +threads_cnt=0 +pid_path=/opt/kelvin-node/var/run/kelvin-node.pid +log_file=/opt/kelvin-node/var/log/kelvin-node.log +ca_folders=[/opt/kelvin-node/var/lib/ca,/opt/kelvin-node/share/ca] +dap_global_db_path=/opt/kelvin-node/var/whitelist.ldb + diff --git a/test/locale/share/configs/network/kelvin-testnet.cfg.tpl b/test/locale/share/configs/network/kelvin-testnet.cfg.tpl new file mode 100644 index 0000000000000000000000000000000000000000..e8b24b01e87d4864bfa06f199e607e7ae0cb03ef --- /dev/null +++ b/test/locale/share/configs/network/kelvin-testnet.cfg.tpl @@ -0,0 +1,19 @@ +# Kelvin Blockchain: development network +# General section +[general] +id=0x0000000000000001 +name=kelvin-testnet +type=development +# Possible values: light, full, archive, master, root +node-role=full +node-alias=addr-%node_addr% +gdb_groups_prefix=kelvin.testnet +seed_nodes_ipv4=[159.89.228.115,165.227.17.239,104.248.89.205,157.230.240.104,167.99.87.197,46.101.149.240,159.89.122.48] +seed_nodes_aliases=[kelvin.testnet.root.0,kelvin.testnet.root.1,kelvin.testnet.root.2,kelvin.testnet.root.3,kelvin.testnet.root.4,kelvin.testnet.root.5,kelvin.testnet.root.6] +seed_nodes_addr=[ffff::0000::0000::0001,ffff::0000::0000::0002,ffff::0000::0000::0003,ffff::0000::0000::0004,ffff::0000::0000::0005,ffff::0000::0000::0006,ffff::0000::0000::0007] + +#[dag-poa] +#events-sign-cert=mycert + +#[dag-pos] +#events-sign-wallet=mywallet diff --git a/test/locale/share/kelvin-node.service b/test/locale/share/kelvin-node.service new file mode 100644 index 0000000000000000000000000000000000000000..8e0acc7ada1b98253a0cd10349d5401543170a93 --- /dev/null +++ b/test/locale/share/kelvin-node.service @@ -0,0 +1,15 @@ +[Unit] +Description=Kelvin Node +After=network.target + +[Service] +Type=forking +OOMScoreAdjust=-1000 +PIDFile=/opt/kelvin-node/var/run/kelvin-node.pid +WorkingDirectory=/opt/kelvin-node +ExecStart=/opt/kelvin-node/bin/kelvin-node -D +ExecStop=/opt/kelvin-node/bin/kelvin-node --stop +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/test/locale/var/lib/ca/mavrodi-cert.dcert b/test/locale/var/lib/ca/mavrodi-cert.dcert new file mode 100644 index 0000000000000000000000000000000000000000..9cbf07841022ea53c2c0860a707f756405621080 Binary files /dev/null and b/test/locale/var/lib/ca/mavrodi-cert.dcert differ diff --git a/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/dat00000000.cdb b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/dat00000000.cdb new file mode 100644 index 0000000000000000000000000000000000000000..cfaae5524eb5522c1e2e28458b16e02999f4d916 Binary files /dev/null and b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/dat00000000.cdb differ diff --git a/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/idx00000000.cdb b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/idx00000000.cdb new file mode 100644 index 0000000000000000000000000000000000000000..2337ae6fb90741cff0d899fa29c7b49360565b77 Binary files /dev/null and b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/idx00000000.cdb differ diff --git a/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/mainindex.cdb b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/mainindex.cdb new file mode 100644 index 0000000000000000000000000000000000000000..75682a33e7eb060cd2bd212dc61a728f88708896 Binary files /dev/null and b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/mainindex.cdb differ diff --git a/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/mainmeta.cdb b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/mainmeta.cdb new file mode 100644 index 0000000000000000000000000000000000000000..451e87d28cc702173c2f33432fc9acc15c80804e Binary files /dev/null and b/test/locale/var/lib/global_db/chain-gdb.local-testnet.chain-F00000000000000F/mainmeta.cdb differ diff --git a/test/locale/var/lib/global_db/global.history/dat00000000.cdb b/test/locale/var/lib/global_db/global.history/dat00000000.cdb new file mode 100644 index 0000000000000000000000000000000000000000..a5f5fb038baed0399cd38cbbbed4469db76a76f4 Binary files /dev/null and b/test/locale/var/lib/global_db/global.history/dat00000000.cdb differ diff --git a/test/locale/var/lib/global_db/global.history/idx00000000.cdb b/test/locale/var/lib/global_db/global.history/idx00000000.cdb new file mode 100644 index 0000000000000000000000000000000000000000..8b1e70c97c8b8e35ffd493c4d153fdb3c8efc415 Binary files /dev/null and b/test/locale/var/lib/global_db/global.history/idx00000000.cdb differ diff --git a/test/locale/var/lib/global_db/global.history/mainindex.cdb b/test/locale/var/lib/global_db/global.history/mainindex.cdb new file mode 100644 index 0000000000000000000000000000000000000000..2caf855d46734f058ad764dee79c1689ab6f28fe Binary files /dev/null and b/test/locale/var/lib/global_db/global.history/mainindex.cdb differ diff --git a/test/locale/var/lib/global_db/global.history/mainmeta.cdb b/test/locale/var/lib/global_db/global.history/mainmeta.cdb new file mode 100644 index 0000000000000000000000000000000000000000..d7062311a6f03964d7f4aa70aad3f4f832ccbfc8 Binary files /dev/null and b/test/locale/var/lib/global_db/global.history/mainmeta.cdb differ diff --git a/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/dat00000000.cdb b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/dat00000000.cdb new file mode 100644 index 0000000000000000000000000000000000000000..cb22d0b7d8ddf60b7eef2436a0d2e0cf216befca Binary files /dev/null and b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/dat00000000.cdb differ diff --git a/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/idx00000000.cdb b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/idx00000000.cdb new file mode 100644 index 0000000000000000000000000000000000000000..ae0b5296b3a00937b236bdf3caa5faa23873954b Binary files /dev/null and b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/idx00000000.cdb differ diff --git a/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/mainindex.cdb b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/mainindex.cdb new file mode 100644 index 0000000000000000000000000000000000000000..e8ac5a0da0a54a134151f8dbcec2f80eab22faa9 Binary files /dev/null and b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/mainindex.cdb differ diff --git a/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/mainmeta.cdb b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/mainmeta.cdb new file mode 100644 index 0000000000000000000000000000000000000000..3d4f37abda447acb74614ea4ca758352d2c09717 Binary files /dev/null and b/test/locale/var/lib/global_db/local-testnet.chain-gdb.m/mainmeta.cdb differ diff --git a/test/locale/var/lib/wallet/na-sapogi-zhene.dwallet b/test/locale/var/lib/wallet/na-sapogi-zhene.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..0114032a98381e82f99c48510094c19edd4d9d53 Binary files /dev/null and b/test/locale/var/lib/wallet/na-sapogi-zhene.dwallet differ diff --git a/test/locale/var/lib/wallet/wallet-1.dwallet b/test/locale/var/lib/wallet/wallet-1.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..e4d092eb5030725151f557f12798325052bb92d8 Binary files /dev/null and b/test/locale/var/lib/wallet/wallet-1.dwallet differ diff --git a/test/locale/var/lib/wallet/wallet-2.dwallet b/test/locale/var/lib/wallet/wallet-2.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..1714873d717f8c2045101594d01229234296d0d2 Binary files /dev/null and b/test/locale/var/lib/wallet/wallet-2.dwallet differ diff --git a/test/locale/var/lib/wallet/wallet_1.dwallet b/test/locale/var/lib/wallet/wallet_1.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..2ed18df13e1e945c590d94694df3e7a7ba19b434 Binary files /dev/null and b/test/locale/var/lib/wallet/wallet_1.dwallet differ diff --git a/test/locale/var/lib/wallet/wallet_2.dwallet b/test/locale/var/lib/wallet/wallet_2.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..382a8874650ee30fdde60306a4314b3a5c502a00 Binary files /dev/null and b/test/locale/var/lib/wallet/wallet_2.dwallet differ diff --git a/test/locale/var/lib/wallet/wallet_from.dwallet b/test/locale/var/lib/wallet/wallet_from.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..b9cafd30a729e9a84b1bd4daeaea380cb12696a4 Binary files /dev/null and b/test/locale/var/lib/wallet/wallet_from.dwallet differ diff --git a/test/locale/var/lib/wallet/wallet_to.dwallet b/test/locale/var/lib/wallet/wallet_to.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..41fa77186e4792cd851155935711e891821ffabc Binary files /dev/null and b/test/locale/var/lib/wallet/wallet_to.dwallet differ diff --git a/test/locale/var/lib/wallet/walleta.dwallet b/test/locale/var/lib/wallet/walleta.dwallet new file mode 100644 index 0000000000000000000000000000000000000000..8c0472e23f64881a7e8105f7c17ab908b4562ae7 Binary files /dev/null and b/test/locale/var/lib/wallet/walleta.dwallet differ diff --git a/test/locale/var/run/kelvin-node.pid b/test/locale/var/run/kelvin-node.pid new file mode 100644 index 0000000000000000000000000000000000000000..0c0c29d0e99053d47739793d1b8db93bdf5ddaa4 --- /dev/null +++ b/test/locale/var/run/kelvin-node.pid @@ -0,0 +1 @@ +14993 \ No newline at end of file diff --git a/test/main.c b/test/main.c old mode 100644 new mode 100755 index e344616e0f4d8560b98428da62072793dbe3f77f..9dcb5f8868fb08932add413490a7d4cb23784812 --- a/test/main.c +++ b/test/main.c @@ -1,10 +1,12 @@ #include "dap_global_db_test.h" +#include "dap_tx_test.h" #include "dap_common.h" int main(void) { // switch off debug info from library -// dap_log_level_set(L_CRITICAL); -// dap_global_db_tests_run(); + dap_log_level_set(L_DEBUG); + // dap_global_db_tests_run(); + dap_tx_tests_run(); return 0; }