// Rebroadcasts blocks starting at hash to the network.
// If sources > 0, additionally rebroadcast source
// chain blocks for receive/open up to sources depth (>= v8.0).
// If destinations > 0, additionally rebroadcast destination
// chain blocks from receive up to destinations depth (>= v8.0).
Rebroadcasts blocks starting at hash to the network.
If sources > 0, additionally rebroadcast source
chain blocks for receive/open up to sources depth (>= v8.0).
If destinations > 0, additionally rebroadcast destination
chain blocks from receive up to destinations depth (>= v8.0).
// Rebroadcasts blocks starting at hash to the network . // If sources > 0 additionally rebroadcast source // chain blocks for receive / open up to sources depth ( > = v8 . 0 ) . // If destinations > 0 additionally rebroadcast destination // chain blocks from receive up to destinations depth ( > = v8 . 0 ) .
func Republish(hash string, count, sources, destinations int) ([]string, error) {
	payload := map[string]interface{}{
		"hash": hash,
	}
	if count > 0 {
		payload["count"] = count
	}
	if sources > 0 {
		payload["sources"] = sources
	}
	if destinations > 0 {
		payload["destinations"] = destinations
	}
	return client.fetchSlice("republish", payload, "blocks")
}
func Republish ( hash string , count , sources , destinations int ) ( [ ] string , error ) { payload := map [ string ] interface { } { " " : hash , } if count > 0 { payload [ " " ] = count } if sources > 0 { payload [ " " ] = sources } if destinations > 0 { payload [ " " ] = destinations } return client . fetchSlice ( " " , payload , " " ) }
Rebroadcasts blocks starting at hash to the network.
Rebroadcasts blocks starting at hash to the network .