@ -603,7 +603,7 @@ int main(int argc, char** argv)
vector < string > l ;
vector < string > l ;
l . push_back ( " Amount " ) ;
l . push_back ( " Amount " ) ;
stringstream label ;
stringstream label ;
label < < " Gas price ( " < < info . minGasPrice < < " ) " ;
label < < " Gas price " ;
l . push_back ( label . str ( ) ) ;
l . push_back ( label . str ( ) ) ;
l . push_back ( " Gas " ) ;
l . push_back ( " Gas " ) ;
vector < string > b ;
vector < string > b ;
@ -652,8 +652,6 @@ int main(int argc, char** argv)
if ( size > 0 )
if ( size > 0 )
cwarn < < " Invalid address length: " < < size ;
cwarn < < " Invalid address length: " < < size ;
}
}
else if ( gasPrice < info . minGasPrice )
cwarn < < " Minimum gas price is " < < info . minGasPrice ;
else if ( gas < minGas )
else if ( gas < minGas )
cwarn < < " Minimum gas amount is " < < minGas ;
cwarn < < " Minimum gas amount is " < < minGas ;
else if ( ssize < 40 )
else if ( ssize < 40 )
@ -704,7 +702,7 @@ int main(int argc, char** argv)
BlockInfo info ( blockData ) ;
BlockInfo info ( blockData ) ;
u256 minGas = ( u256 ) Client : : txGas ( 0 , 0 ) ;
u256 minGas = ( u256 ) Client : : txGas ( 0 , 0 ) ;
Address dest = h160 ( fromHex ( fields [ 0 ] ) ) ;
Address dest = h160 ( fromHex ( fields [ 0 ] ) ) ;
c . transact ( us . secret ( ) , amount , dest , bytes ( ) , minGas , info . minGasPrice ) ;
c . transact ( us . secret ( ) , amount , dest , bytes ( ) , minGas , 10 * dev : : eth : : szabo ) ;
}
}
}
}
}
}
@ -718,7 +716,7 @@ int main(int argc, char** argv)
vector < string > l ;
vector < string > l ;
l . push_back ( " Endowment " ) ;
l . push_back ( " Endowment " ) ;
stringstream label ;
stringstream label ;
label < < " Gas price ( " < < info . minGasPrice < < " ) " ;
label < < " Gas price " ;
l . push_back ( label . str ( ) ) ;
l . push_back ( label . str ( ) ) ;
l . push_back ( " Gas " ) ;
l . push_back ( " Gas " ) ;
vector < string > b ;
vector < string > b ;
@ -766,13 +764,11 @@ int main(int argc, char** argv)
u256 minGas = ( u256 ) Client : : txGas ( init . size ( ) , 0 ) ;
u256 minGas = ( u256 ) Client : : txGas ( init . size ( ) , 0 ) ;
if ( endowment < 0 )
if ( endowment < 0 )
cwarn < < " Invalid endowment " ;
cwarn < < " Invalid endowment " ;
else if ( gasPrice < info . minGasPrice )
cwarn < < " Minimum gas price is " < < info . minGasPrice ;
else if ( gas < minGas )
else if ( gas < minGas )
cwarn < < " Minimum gas amount is " < < minGas ;
cwarn < < " Minimum gas amount is " < < minGas ;
else
else
{
{
c . transact ( us . secret ( ) , endowment , init , gas , gasPrice ) ;
c . transact ( us . secret ( ) , endowment , init , gas , 10 * dev : : eth : : szabo ) ;
}
}
}
}
}
}