func (b *BadgerTreeTransaction) NewSingleNode(key chainhash.Hash, value chainhash.Hash, subtreeHash chainhash.Hash) (*Node, error) {
	n := &Node{
		one:      true,
		oneKey:   &key,
		oneValue: &value,
		value:    subtreeHash,
	}

	return n, b.SetNode(n)
}
// NewSingleNode creates a new single node and adds it to the database.
NewSingleNode creates a new single node and adds it to the database.
// NewSingleNode creates a new single node and adds it to the database .
func (b *BadgerTreeTransaction) NewSingleNode(key chainhash.Hash, value chainhash.Hash, subtreeHash chainhash.Hash) (*Node, error) {
	n := &Node{
		one:      true,
		oneKey:   &key,
		oneValue: &value,
		value:    subtreeHash,
	}
	return n, b.SetNode(n)
}
func ( b * BadgerTreeTransaction ) NewSingleNode ( key chainhash . Hash , value chainhash . Hash , subtreeHash chainhash . Hash ) ( * Node , error ) { n := & Node { one : true , oneKey : & key , oneValue : & value , value : subtreeHash , } return n , b . SetNode ( n ) }
NewSingleNode creates a new single node and adds it to the database.
NewSingleNode creates a new single node and adds it to the database .