NewBPTreeN
NewBPTreeN allocates a BP-tree under /r/gnoswap/protocol_fee's realm context so tree.Set leaf-slot writes clear the readonly-taint gate regardless of which realm (protocol_fee/v1, mock, tests) calls Set. Callers must allocate protocol_fee trees through here rather than bptree.NewBPTreeN directly.
Parameters:
- fanout: Branching factor passed to the BP-tree constructor.
Returns:
- tree: A new BP-tree configured with fanout and allocated in the protocol-fee realm context.
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/protocol_fee.NewBPTreeN()"
Result