diff --git a/common/connectors.go b/common/connectors.go index 4787c70..572a640 100644 --- a/common/connectors.go +++ b/common/connectors.go @@ -43,7 +43,13 @@ func ValidateConnectors(poolTx string, connectors []string) error { } prevConnectorTxid = utx.TxHash().String() - prevConnectorVout = 0 + + // if the last connector is reached, reset to 1 + if i == len(connectors)-1 { + prevConnectorVout = 1 + } else { + prevConnectorVout = 0 + } } return nil }