func (c *ClusterTx) NodePendingByAddress(address string) (NodeInfo, error) {
	null := NodeInfo{}
	nodes, err := c.nodes(true /*pending */, "address=?", address)
	if err != nil {
		return null, err
	}
	switch len(nodes) {
	case 0:
		return null, ErrNoSuchObject
	case 1:
		return nodes[0], nil
	default:
		return null, fmt.Errorf("more than one node matches")
	}
}
func (c *ClusterTx) NodePendingByAddress(address string) (NodeInfo, error) {
	null := NodeInfo{}
	nodes, err := c.nodes(true , "address=?", address)
	if err != nil {
		return null, err
	}
	switch len(nodes) {
	case 0:
		return null, ErrNoSuchObject
	case 1:
		return nodes[0], nil
	default:
		return null, fmt.Errorf("more than one node matches")
	}
}
func ( c * ClusterTx ) NodePendingByAddress ( address string ) ( NodeInfo , error ) { null := NodeInfo { } nodes , err := c . nodes ( true /*pending */ , " " , address ) if err != nil { return null , err } switch len ( nodes ) { case 0 : return null , ErrNoSuchObject case 1 : return nodes [ 0 ] , nil default : return null , fmt . Errorf ( " " ) } }
// NodePendingByAddress returns the pending node with the given network address.
NodePendingByAddress returns the pending node with the given network address .