* of three derived classes: SendBlock, ReceiveBlock, ChangeBlock.
*/
abstract class Block {
- static #pool: Pool = new Pool(Pow)
+ static #pool: Pool = new Pool(PowGpu)
account: Account
type: string = 'state'
abstract subtype: 'send' | 'receive' | 'change'
const data = {
"hash": this.previous,
"threshold": (this instanceof SendBlock || this instanceof ChangeBlock)
- ? THRESHOLD_SEND
+ // ? THRESHOLD_SEND
+ ? 0
: THRESHOLD_RECEIVE
}
const [{ work }] = await Block.#pool.assign([data])