|
Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains
0.5
Reference implementation of the Zecale protocol by Clearmatics
|
Go to the documentation of this file.
5 #ifndef __ZECALE_CORE_APPLICATION_POOL_HPP__
6 #define __ZECALE_CORE_APPLICATION_POOL_HPP__
21 template<
typename nppT,
typename nsnarkT,
size_t NumProofs>
26 const std::string _name;
29 const typename nsnarkT::verification_key _verification_key;
32 std::priority_queue<nested_transaction<nppT, nsnarkT>> _tx_pool;
36 const std::string &
name,
const typename nsnarkT::verification_key &vk);
44 const std::string &
name()
const;
70 #endif // __ZECALE_CORE_APPLICATION_POOL_HPP__
size_t get_next_batch(std::array< nested_transaction< nppT, nsnarkT >, NumProofs > &batch)
void add_tx(const nested_transaction< nppT, nsnarkT > &tx)
Add transaction to the pool.
const nsnarkT::verification_key & verification_key() const
const std::string & name() const
application_pool(const std::string &name, const typename nsnarkT::verification_key &vk)
application_pool & operator=(const application_pool &other)=delete
size_t tx_pool_size() const
Returns the number of transactions in the _tx_pool.