mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete * 2.1.0 main node rollup
11 lines
227 B
Go
11 lines
227 B
Go
package protobufs
|
|
|
|
import "bytes"
|
|
|
|
// equalBytes compares two byte slices, treating nil and empty slices as equal
|
|
func equalBytes(a, b []byte) bool {
|
|
if len(a) == 0 && len(b) == 0 {
|
|
return true
|
|
}
|
|
return bytes.Equal(a, b)
|
|
} |