mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
crypto/kzg4844: avoid copying blobs for marshaling (#31911)
LLVM is not able to handle large arrays on stack
This commit is contained in:
parent
5e98c97abb
commit
d675721276
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ func (b *Blob) UnmarshalJSON(input []byte) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalText returns the hex representation of b.
|
// MarshalText returns the hex representation of b.
|
||||||
func (b Blob) MarshalText() ([]byte, error) {
|
func (b *Blob) MarshalText() ([]byte, error) {
|
||||||
return hexutil.Bytes(b[:]).MarshalText()
|
return hexutil.Bytes(b[:]).MarshalText()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue