Upgrade group avatar columns before notifying database readiness
This commit is contained in:
1 parent
5c772aeecf
commit
e8365fdec6
2 files changed
+9
No files matched your search
@@ -119,6 +119,10 @@ int main(void) {
|
||||
group_x, NULL, group_public, NULL, signature));
|
||||
assert(!group_avatar_get(nodes[0], GROUP, ©) && copy.version == first.version);
|
||||
uint8_t private_key[32]; assert(!topo_node_sqlite_channel_get_priv(nodes[0]->topo_sqlite_db, CHANNEL, private_key));
|
||||
uint8_t wrong_pub[32] = {1};
|
||||
assert(topo_node_sqlite_channel_put(nodes[0]->topo_sqlite_db, CHANNEL, "avatar", nodes[0]->node_id,
|
||||
group_x, NULL, wrong_pub, NULL, signature) < 0);
|
||||
assert(!group_avatar_get(nodes[0], GROUP, ©) && copy.version == first.version);
|
||||
|
||||
etcp_router_set_receive_ready(nodes[1], ETCP_RT_ID_GROUP_AVATAR, hold);
|
||||
image[0] ^= 1; assert(!group_avatar_set(nodes[0], GROUP, image, 4097));
|
||||
|
||||
Reference in new issue
Block a user