publishVariant

suspend fun publishVariant(bytes: ByteArray, variantOf: VariantKey): BobbinHash

Publish a compiled bobbin variant through this node's own BobbinExchange so it gossips to the mesh. This is what a compiler node calls after building a variant (in the spike, via the fake compiler). Requires a lazyFetch capability — throws IllegalStateException otherwise, fail-loud rather than silently dropping the variant.

Return

the BobbinHash of the published variant bytes.