|
|
@ -1236,6 +1236,7 @@ void Main::on_transactionQueue_currentItemChanged() |
|
|
|
if (i >= 0 && i < (int)ethereum()->pending().size()) |
|
|
|
{ |
|
|
|
Transaction tx(ethereum()->pending()[i]); |
|
|
|
TransactionReceipt receipt(ethereum()->postState().receipt(i)); |
|
|
|
auto ss = tx.safeSender(); |
|
|
|
h256 th = sha3(rlpList(ss, tx.nonce())); |
|
|
|
s << "<h3>" << th << "</h3>"; |
|
|
@ -1258,12 +1259,15 @@ void Main::on_transactionQueue_currentItemChanged() |
|
|
|
if (tx.data().size()) |
|
|
|
s << dev::memDump(tx.data(), 16, true); |
|
|
|
} |
|
|
|
s << "<div>Hex: <span style=\"font-family: Monospace,Lucida Console,Courier,Courier New,sans-serif; font-size: small\">" << toHex(tx.rlp()) << "</span></div>"; |
|
|
|
s << "<hr/>"; |
|
|
|
|
|
|
|
s << "<div>Log Bloom: " << receipt.bloom() << "</div>"; |
|
|
|
auto r = receipt.rlp(); |
|
|
|
s << "<div>Receipt: " << toString(RLP(r)) << "</div>"; |
|
|
|
s << "<div>Receipt-Hex: <span style=\"font-family: Monospace,Lucida Console,Courier,Courier New,sans-serif; font-size: small\">" << toHex(receipt.rlp()) << "</span></div>"; |
|
|
|
s << renderDiff(ethereum()->diff(i, -1)); |
|
|
|
// s << "Pre: " << fs.rootHash() << "<br/>";
|
|
|
|
// s << "Post: <b>" << ts.rootHash() << "</b>";
|
|
|
|
|
|
|
|
s << renderDiff(ethereum()->diff(i, 0)); |
|
|
|
} |
|
|
|
|
|
|
|
ui->pendingInfo->setHtml(QString::fromStdString(s.str())); |
|
|
@ -1376,11 +1380,6 @@ void Main::on_blocks_currentItemChanged() |
|
|
|
s << "<br/>R: <b>" << hex << nouppercase << tx.signature().r << "</b>"; |
|
|
|
s << "<br/>S: <b>" << hex << nouppercase << tx.signature().s << "</b>"; |
|
|
|
s << "<br/>Msg: <b>" << tx.sha3(eth::WithoutSignature) << "</b>"; |
|
|
|
s << "<div>Log Bloom: " << receipt.bloom() << "</div>"; |
|
|
|
s << "<div>Hex: <span style=\"font-family: Monospace,Lucida Console,Courier,Courier New,sans-serif; font-size: small\">" << toHex(block[1][txi].data()) << "</span></div>"; |
|
|
|
auto r = receipt.rlp(); |
|
|
|
s << "<div>Receipt: " << toString(RLP(r)) << "</div>"; |
|
|
|
s << "<div>Receipt-Hex: <span style=\"font-family: Monospace,Lucida Console,Courier,Courier New,sans-serif; font-size: small\">" << toHex(receipt.rlp()) << "</span></div>"; |
|
|
|
if (tx.isCreation()) |
|
|
|
{ |
|
|
|
if (tx.data().size()) |
|
|
@ -1391,6 +1390,12 @@ void Main::on_blocks_currentItemChanged() |
|
|
|
if (tx.data().size()) |
|
|
|
s << dev::memDump(tx.data(), 16, true); |
|
|
|
} |
|
|
|
s << "<div>Hex: <span style=\"font-family: Monospace,Lucida Console,Courier,Courier New,sans-serif; font-size: small\">" << toHex(block[1][txi].data()) << "</span></div>"; |
|
|
|
s << "<hr/>"; |
|
|
|
s << "<div>Log Bloom: " << receipt.bloom() << "</div>"; |
|
|
|
auto r = receipt.rlp(); |
|
|
|
s << "<div>Receipt: " << toString(RLP(r)) << "</div>"; |
|
|
|
s << "<div>Receipt-Hex: <span style=\"font-family: Monospace,Lucida Console,Courier,Courier New,sans-serif; font-size: small\">" << toHex(receipt.rlp()) << "</span></div>"; |
|
|
|
s << renderDiff(ethereum()->diff(txi, h)); |
|
|
|
ui->debugCurrent->setEnabled(true); |
|
|
|
ui->debugDumpState->setEnabled(true); |
|
|
@ -1631,7 +1636,7 @@ void Main::on_data_textChanged() |
|
|
|
{ |
|
|
|
m_data = fromHex(src); |
|
|
|
} |
|
|
|
else if (src.substr(0, 8) == "contract" || src.substr(0, 2) == "/*") // improve this heuristic
|
|
|
|
else if (src.substr(0, 8) == "contract" || src.substr(0, 5) == "//sol") // improve this heuristic
|
|
|
|
{ |
|
|
|
dev::solidity::CompilerStack compiler; |
|
|
|
try |
|
|
@ -1714,6 +1719,18 @@ void Main::on_data_textChanged() |
|
|
|
updateFee(); |
|
|
|
} |
|
|
|
|
|
|
|
void Main::on_clearPending_triggered() |
|
|
|
{ |
|
|
|
writeSettings(); |
|
|
|
ui->mine->setChecked(false); |
|
|
|
ui->net->setChecked(false); |
|
|
|
web3()->stopNetwork(); |
|
|
|
ethereum()->clearPending(); |
|
|
|
readSettings(true); |
|
|
|
installWatches(); |
|
|
|
refreshAll(); |
|
|
|
} |
|
|
|
|
|
|
|
void Main::on_killBlockchain_triggered() |
|
|
|
{ |
|
|
|
writeSettings(); |
|
|
|