hackfisher / bitshares_snapshot

Libraries and Utilities for building DACs
The Unlicense
0 stars 1 forks source link

In lotto_db::store, get delegate id from block #1

Closed hackfisher closed 10 years ago

hackfisher commented 10 years ago

FC_ASSERT(state.has_signature(address(blk.signee())), "", ("owner", address(blk.signee()))("sigs", state.sigs));

using blk.signee() to verify that the secret trx is created by delegate.

But still can not validate the secret_output.delegate_id is fake or not?

hackfisher commented 10 years ago

https://github.com/BitShares/bitshares_toolkit/blob/master/libraries/blockchain/chain_database.cpp#L558

hackfisher commented 10 years ago

https://github.com/HackFisher/bitshares_toolkit/blob/lotto_experi/libraries/lotto/lotto_db.cpp#L249

hackfisher commented 10 years ago

No need anymore for lotto.