diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-15 04:03:07 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-15 04:03:07 +0000 |
commit | 5253d1ab77fab1995ede03fb934edd67f1359ba8 (patch) | |
tree | fd29f92dd45891aab4d1bc6103bb886971a29523 /main.cpp | |
parent | 64a474a49b20a66453fbcd2382e4b042427b0a0f (diff) |
strip out unfinished product, review and market stuff,
enable _() instead of wxT() in uiproject.fbp so it uses wxGetTranslation for the wxFormBuilder generated part of the UI
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@64 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -1706,10 +1706,8 @@ bool AlreadyHave(CTxDB& txdb, const CInv& inv) {
switch (inv.type)
{
- case MSG_TX: return mapTransactions.count(inv.hash) || txdb.ContainsTx(inv.hash);
- case MSG_BLOCK: return mapBlockIndex.count(inv.hash) || mapOrphanBlocks.count(inv.hash);
- case MSG_REVIEW: return true;
- case MSG_PRODUCT: return mapProducts.count(inv.hash);
+ case MSG_TX: return mapTransactions.count(inv.hash) || txdb.ContainsTx(inv.hash);
+ case MSG_BLOCK: return mapBlockIndex.count(inv.hash) || mapOrphanBlocks.count(inv.hash);
}
// Don't know what it is, just say we already got one
return true;
@@ -2108,24 +2106,6 @@ bool ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) }
- else if (strCommand == "review")
- {
- CDataStream vMsg(vRecv);
- CReview review;
- vRecv >> review;
-
- CInv inv(MSG_REVIEW, review.GetHash());
- pfrom->AddInventoryKnown(inv);
-
- if (review.AcceptReview())
- {
- // Relay the original message as-is in case it's a higher version than we know how to parse
- RelayMessage(inv, vMsg);
- mapAlreadyAskedFor.erase(inv);
- }
- }
-
-
else if (strCommand == "block")
{
auto_ptr<CBlock> pblock(new CBlock);
|