|
|
|
@ -74,9 +74,12 @@ static void test_all_groups_tcp(void) { |
|
|
|
sqlite3 *db = nodes[i]->topo_sqlite_db; |
|
|
|
sqlite3 *db = nodes[i]->topo_sqlite_db; |
|
|
|
assert(!topo_node_sqlite_channel_put(db, "42", "NAT group test", owner->node_id, owner->my_keys.public_key, |
|
|
|
assert(!topo_node_sqlite_channel_put(db, "42", "NAT group test", owner->node_id, owner->my_keys.public_key, |
|
|
|
NULL, owner->my_ed25519_pubkey, NULL, signature)); |
|
|
|
NULL, owner->my_ed25519_pubkey, NULL, signature)); |
|
|
|
for (unsigned j = 0; j < 3; j++) |
|
|
|
for (unsigned j = 0; j < 3; j++) { |
|
|
|
|
|
|
|
assert(!topo_node_sqlite_node_update_verified(db, nodes[j]->node_id, nodes[j]->name, |
|
|
|
|
|
|
|
nodes[j]->my_keys.public_key, nodes[j]->my_ed25519_pubkey, 1, 1)); |
|
|
|
assert(!topo_node_sqlite_member_block_put(db, "42", nodes[j]->node_id, signature, 1, signature, 1, |
|
|
|
assert(!topo_node_sqlite_member_block_put(db, "42", nodes[j]->node_id, signature, 1, signature, 1, |
|
|
|
nodes[j]->my_keys.public_key, nodes[j]->my_ed25519_pubkey, "{}", NULL, 0, signature)); |
|
|
|
nodes[j]->my_keys.public_key, nodes[j]->my_ed25519_pubkey, "{}", NULL, 0, signature)); |
|
|
|
|
|
|
|
} |
|
|
|
groups[i] = topo_groups_create_group(nodes[i]->topo_groups, 42, TOPO_GROUP_TYPE_CHAT, "42"); |
|
|
|
groups[i] = topo_groups_create_group(nodes[i]->topo_groups, 42, TOPO_GROUP_TYPE_CHAT, "42"); |
|
|
|
assert(groups[i]); |
|
|
|
assert(groups[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
|