mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Add test for another tx that broke lnd/btcd (#4868)
This commit is contained in:
parent
24e7bcfd97
commit
5111bccc5e
2 changed files with 9 additions and 0 deletions
File diff suppressed because one or more lines are too long
|
@ -52,6 +52,14 @@ class BlockTest extends BitcoinSJvmTest {
|
|||
assert(tx.hex == lines)
|
||||
}
|
||||
|
||||
it must "parse a large transaction 73be398c4bdc43709db7398106609eea2a7841aaf3a4fa2000dc18184faa2a7e" in {
|
||||
val fileName =
|
||||
"/73be398c4bdc43709db7398106609eea2a7841aaf3a4fa2000dc18184faa2a7e.txt"
|
||||
val lines = Source.fromURL(getClass.getResource(fileName)).mkString.trim
|
||||
val tx = Transaction.fromHex(lines)
|
||||
assert(tx.hex == lines)
|
||||
}
|
||||
|
||||
it must "have serialization symmetry" in {
|
||||
forAllParallel(BlockchainElementsGenerator.block) { block =>
|
||||
assert(Block(block.hex) == block)
|
||||
|
|
Loading…
Add table
Reference in a new issue