General Transaction Tests
See original GitHub issueThis is an isuue describing new transaction tests format for the upcoming changes. Because we plan to change transaction protocol for the scheduled forks, transaction tests would also be generalized.
A new transaction test format is following:
{
"AddressLessThan20Prefixed0" : {
"Byzantium" : {
"hash" : "99354ff47d8a69e44f42fc706213a8b3ba1285184ce53611572a089db2b2d9f1",
"sender" : "aeed6ced7a2af49a8ff0dca6a0811e40462a6d4d"
},
"Constantinople" : {
"hash" : "99354ff47d8a69e44f42fc706213a8b3ba1285184ce53611572a089db2b2d9f1",
"sender" : "aeed6ced7a2af49a8ff0dca6a0811e40462a6d4d"
},
"EIP150" : {
"hash" : "99354ff47d8a69e44f42fc706213a8b3ba1285184ce53611572a089db2b2d9f1",
"sender" : "aeed6ced7a2af49a8ff0dca6a0811e40462a6d4d"
},
"EIP158" : {
"hash" : "99354ff47d8a69e44f42fc706213a8b3ba1285184ce53611572a089db2b2d9f1",
"sender" : "aeed6ced7a2af49a8ff0dca6a0811e40462a6d4d"
},
"Frontier" : {
"hash" : "99354ff47d8a69e44f42fc706213a8b3ba1285184ce53611572a089db2b2d9f1",
"sender" : "aeed6ced7a2af49a8ff0dca6a0811e40462a6d4d"
},
"Homestead" : {
"hash" : "99354ff47d8a69e44f42fc706213a8b3ba1285184ce53611572a089db2b2d9f1",
"sender" : "aeed6ced7a2af49a8ff0dca6a0811e40462a6d4d"
},
"_info" : {
"comment" : "",
"filledwith" : "cpp-1.3.0+commit.6a6376e6.Linux.g++",
"lllcversion" : "Version: 0.4.18-develop.2017.10.11+commit.81f9f86c.Linux.g++",
"source" : "src/TransactionTestsFiller/ttConstantinople/AddressLessThan20Prefixed0Filler.json",
"sourceHash" : "f42e40ebc997031508fa8d80c9fa67b75df449493f8455b62f2272b0d0c0f994"
},
"rlp" : "0xf85f800182520894000000000000000000000000000b9331677e6ebf0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa02887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
Just read the rlp and compare this transaction hash and sender fields to one in the forks section. If transaction is rejected(invalid) on a certain fork rule, the section would just be empty.
{
"AddressLessThan20" : {
"Byzantium" : {
},
"Constantinople" : {
},
"EIP150" : {
},
"EIP158" : {
},
"Frontier" : {
},
"Homestead" : {
},
"_info" : {
"comment" : "",
"filledwith" : "cpp-1.3.0+commit.6a6376e6.Linux.g++",
"lllcversion" : "Version: 0.4.18-develop.2017.10.11+commit.81f9f86c.Linux.g++",
"source" : "src/TransactionTestsFiller/ttConstantinople/AddressLessThan20Filler.json",
"sourceHash" : "c0bf8d58976623eb692541cbcf97138c4a54d1b0c564ec80b5a2936071878dcb"
},
"rlp" : "0xf8528001825208870b9331677e6ebf0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa01887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
X. TRANSACTION TESTING - FDIC
Transaction testing generally refers to the testing of individual loans and is also known as account testing, account sampling, or transaction-level testing ......
Read more >How to Test a Transaction - CMS
Please see below information about the steps to follow for testing a transaction: Click the option to register (you must first register). Click ......
Read more >Walk-Through Test: Definition and How It Works in Accounting
A walk-through test traces a transaction step-by-step through the accounting system from ... or both—and then reported in the general ledger of the...
Read more >Testing Guide - Authorize.net Developer
Use the testing guide to trigger specific transaction response while testing in the sandbox. Testing in the Sandbox ... General bank decline ...
Read more >Journal Entry Testing - Audit - CArunway
Journal entry testing is to audit all transactions accounted. Auditor needs to perform various tests. Lets see all those in detail.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes. it should be. @jwasinger ?
The rationality is a test size. The transaction structure might change over fork. So if I print transaction rlp deserialization for each fork it would make the test pretty large. but I think it is enough to check transaction hash as it should be the same on each client.