1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

slightly changed block format

- small change in block format
- added config in blockchain explorer
- bugfixes
This commit is contained in:
ton 2019-11-28 18:44:14 +04:00
parent 7f3a22a217
commit 090e0c16eb
82 changed files with 1852 additions and 391 deletions

View file

@ -451,6 +451,7 @@ void test_multisig(Client& client, const Wallet& giver_wallet) {
int n = 16;
int k = 10;
td::uint32 wallet_id = 7;
std::vector<td::Ed25519::PrivateKey> private_keys;
for (int i = 0; i < n; i++) {
private_keys.push_back(td::Ed25519::generate_private_key().move_as_ok());
@ -458,6 +459,7 @@ void test_multisig(Client& client, const Wallet& giver_wallet) {
auto ms = ton::MultisigWallet::create();
auto init_data = ms->create_init_data(
wallet_id,
td::transform(private_keys, [](const auto& pk) { return pk.get_public_key().move_as_ok().as_octet_string(); }),
k);
ms = ton::MultisigWallet::create(init_data);
@ -472,7 +474,7 @@ void test_multisig(Client& client, const Wallet& giver_wallet) {
ton::GenericAccount::store_int_message(icb, block::StdAddress::parse(giver_wallet.address).move_as_ok(), 1);
icb.store_bytes("\0\0\0\0", 4);
vm::CellString::store(icb, "Greatings from multisig", 35 * 8).ensure();
ton::MultisigWallet::QueryBuilder qb(-1 - i, icb.finalize());
ton::MultisigWallet::QueryBuilder qb(wallet_id, -1 - i, icb.finalize());
for (int i = 0; i < k - 1; i++) {
qb.sign(i, private_keys[i]);
}