func (db *DB) SuggestAddress(seedAddress [4]byte) ([4]byte, error) {

	head := db.addressTreeHead

	//Get the bit neighbour address so we know the path in the binaryTree
	var bitSeedAddress = byteToBit(seedAddress)

	foundFlag, suggestedAddress := closestFreeAddress(head, bitSeedAddress, 0)
	if foundFlag {
		return suggestedAddress, nil
	}

	return [4]byte{}, errors.New("Can't suggest address for " + net.IP(seedAddress[:]).String())
}
//SuggestAddress suggests an address from a neighbour Address
SuggestAddress suggests an address from a neighbour Address
// SuggestAddress suggests an address from a neighbour Address
func (db *DB) SuggestAddress(seedAddress [4]byte) ([4]byte, error) {
	head := db.addressTreeHead
	var bitSeedAddress = byteToBit(seedAddress)
	foundFlag, suggestedAddress := closestFreeAddress(head, bitSeedAddress, 0)
	if foundFlag {
		return suggestedAddress, nil
	}
	return [4]byte{}, errors.New("Can't suggest address for " + net.IP(seedAddress[:]).String())
}
func ( db * DB ) SuggestAddress ( seedAddress [ 4 ] byte ) ( [ 4 ] byte , error ) { head := db . addressTreeHead var bitSeedAddress = byteToBit ( seedAddress ) foundFlag , suggestedAddress := closestFreeAddress ( head , bitSeedAddress , 0 ) if foundFlag { return suggestedAddress , nil } return [ 4 ] byte { } , errors . New ( " " + net . IP ( seedAddress [ : ] ) . String ( ) ) }
SuggestAddress suggests an address from a neighbour Address
SuggestAddress suggests an address from a neighbour Address
//Get the bit neighbour address so we know the path in the binaryTree