import { BURN_ADDRESS, PREAMBLE } from './constants.js'
import { Account } from './account.js'
import { bytes, dec, hex } from './convert.js'
+import { NanoNaCl } from './nano-nacl.js'
+import { Pool } from './pool.js'
import { Rpc } from './rpc.js'
import Tools from './tools.js'
-import { NanoNaCl } from './nano-nacl.js'
+import { Pow } from './workers.js'
/**
* Represents a block as defined by the Nano cryptocurrency protocol. The Block
* of three derived classes: SendBlock, ReceiveBlock, ChangeBlock.
*/
abstract class Block {
+ #pool: Pool
account: Account
type: string = 'state'
abstract subtype: 'send' | 'receive' | 'change'
} else {
throw new TypeError('Invalid account')
}
+ this.#pool = new Pool(Pow)
}
/**