Browse Source

neth: fix pending

cl-refactor
caktux 11 years ago
parent
commit
b13979d1af
  1. 14
      neth/main.cpp

14
neth/main.cpp

@ -890,23 +890,21 @@ int main(int argc, char** argv)
// Pending // Pending
y = 1; y = 1;
auto aps = c.pending(); for (Transaction const& t: c.pending())
for (auto const& t: aps)
{ {
if (t.receiveAddress) auto s = t.receiveAddress ?
auto s = boost::format("%1% %2%> %3%: %4% [%5%]") % boost::format("%1% %2%> %3%: %4% [%5%]") %
toString(t.safeSender()) % toString(t.safeSender()) %
(st.addressHasCode(t.receiveAddress) ? '*' : '-') % (st.addressHasCode(t.receiveAddress) ? '*' : '-') %
toString(t.receiveAddress) % toString(t.receiveAddress) %
toString(formatBalance(t.value)) % toString(formatBalance(t.value)) %
toString((unsigned)t.nonce); toString((unsigned)t.nonce) :
else boost::format("%1% +> %2%: %3% [%4%]") %
auto s = boost::format("%1% +> %2%: %3% [%4%]") %
toString(t.safeSender()) % toString(t.safeSender()) %
toString(right160(sha3(rlpList(t.safeSender(), t.nonce)))) % toString(right160(sha3(rlpList(t.safeSender(), t.nonce)))) %
toString(formatBalance(t.value)) % toString(formatBalance(t.value)) %
toString((unsigned)t.nonce); toString((unsigned)t.nonce);
mvwaddnstr(pendingwin, y++, x, s.c_str(), qwidth); mvwaddnstr(pendingwin, y++, x, s.str().c_str(), qwidth);
if (y > height * 1 / 5 - 4) if (y > height * 1 / 5 - 4)
break; break;
} }

Loading…
Cancel
Save