Skip to content

Commit 1f62035

Browse files
committed
Merge remote-tracking branch 'afk11/outpointserializer-faster-parse'
2 parents 9841199 + 33dfeea commit 1f62035

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Serializer/Transaction/OutPointSerializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function serialize(OutPointInterface $outpoint): BufferInterface
5050
public function fromParser(Parser $parser): OutPointInterface
5151
{
5252
return new OutPoint(
53-
$this->txid->read($parser),
54-
(int) $this->vout->read($parser)
53+
new Buffer(strrev($parser->readBytes(32)->getBinary()), 32),
54+
unpack("V", $parser->readBytes(4)->getBinary())[1]
5555
);
5656
}
5757

0 commit comments

Comments
 (0)