Files
coreth/plugin/evm/atomic/gossip.go
zeekay dd02f9cc9b chore: remove local replace directive and update vm dependency
- Update github.com/luxfi/vm v1.0.1 → v1.0.2
- Remove local replace directive for vm
- Use published package versions for reproducible builds
2026-01-03 07:11:08 -08:00

19 lines
453 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package atomic
import "github.com/luxfi/p2p/gossip"
var _ gossip.Marshaller[*Tx] = (*TxMarshaller)(nil)
type TxMarshaller struct{}
func (g *TxMarshaller) MarshalGossip(tx *Tx) ([]byte, error) {
return tx.SignedBytes(), nil
}
func (*TxMarshaller) UnmarshalGossip(bytes []byte) (*Tx, error) {
return ExtractAtomicTx(bytes, Codec)
}