mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
Make code self-documenting by using symbolic constants
This commit is contained in:
@@ -72,7 +72,7 @@ STTx::STTx (SerialIter& sit)
|
||||
{
|
||||
int length = sit.getBytesLeft ();
|
||||
|
||||
if ((length < Protocol::txMinSizeBytes) || (length > Protocol::txMaxSizeBytes))
|
||||
if ((length < txMinSizeBytes) || (length > txMaxSizeBytes))
|
||||
Throw<std::runtime_error> ("Transaction length invalid");
|
||||
|
||||
set (sit);
|
||||
|
||||
Reference in New Issue
Block a user