Comments (4)
So, we have 7 case.
https://github.com/darkcoin/darkcoin/blob/master/src/main.cpp
bool static AlreadyHave(const CInv& inv)
{
switch (inv.type)
{
case MSG_TX:
{
bool txInMap = false;
txInMap = mempool.exists(inv.hash);
return txInMap || mapOrphanTransactions.count(inv.hash) ||
pcoinsTip->HaveCoins(inv.hash);
}
case MSG_BLOCK:
return mapBlockIndex.count(inv.hash) ||
mapOrphanBlocks.count(inv.hash);
case MSG_TXLOCK_REQUEST:
return mapTxLockReq.count(inv.hash) ||
mapTxLockReqRejected.count(inv.hash);
case MSG_TXLOCK_VOTE:
return mapTxLockVote.count(inv.hash);
case MSG_SPORK:
return mapSporks.count(inv.hash);
case MSG_MASTERNODE_WINNER:
return mapSeenMasternodeVotes.count(inv.hash);
case MSG_MASTERNODE_SCANNING_ERROR:
return mapMasternodeScanningErrors.count(inv.hash);
}
// Don't know what it is, just say we already got one
return true;
}
Try add it => and we get same error.
('type', pack.EnumType(pack.IntType(32), {1: 'tx', 2: 'block', 3: 'txlock_request', 4: 'txlock_vote', 5: 'spork', 6: 'masternode_winner', 7: 'masternode_scanning_error')),
But => exceptions.ValueError: enum data (8) => so what is 8 type? Try add
('type', pack.EnumType(pack.IntType(32), {1: 'tx', 2: 'block', 3: 'txlock_request', 4: 'txlock_vote', 5: 'spork', 6: 'masternode_winner', 7: 'masternode_scanning_error', 8: 'test')),
And get
Unknown inv type {'type': 'test', 'hash': 85018028629704193983546970934772094848258373244713604991801059976327843196613L}`
What is the correct name for the type 8?
from p2pool-dash.
possible fix in /p2pool/bitcoin/p2p.py
message_inv = pack.ComposedType([
('invs', pack.ListType(pack.ComposedType([
('type', pack.EnumType(pack.IntType(32), {1: 'tx', 2: 'block', 3: 'txlock_request', 4: 'txlock_vote', 5: 'spork', 6: 'masternode_winner', 7: 'masternode_scanning_error', 8: 'unknown'})),
('hash', pack.IntType(256)),
]))),
])
def handle_inv(self, invs):
for inv in invs:
if inv['type'] == 'tx':
self.send_getdata(requests=[inv])
elif inv['type'] == 'block':
self.factory.new_block.happened(inv['hash'])
# else:
# print 'Unknown inv type', inv
from p2pool-dash.
I believe this is also fixed in pull request #10
from p2pool-dash.
Yes.
from p2pool-dash.
Related Issues (20)
- Missing Blocks in List HOT 3
- Segwit Update
- Is it true that this port need? and log file HOT 1
- Baikal Giant B password hacked HOT 1
- twisted.web.error.Connectionlost
- Dashd, versionbit Warning HOT 2
- Block submittal result: False (u'inconclusive') Excepted: True
- Not working with dashd vers 12.3-RC2 on testnet HOT 5
- Every single P2Pool node stops at height 884720
- does not mining HOT 1
- Couldn't link returned work's job id with its handler. HOT 5
- p2pool is downloading shares.... HOT 10
- transaction errors from the daemon HOT 14
- What does this mean? How do I install?
- There is no reward on some block's HOT 4
- Testing dashd P2P connection to ... not connecting in dash 0.14.0.3 HOT 5
- I got this error while running this command. python2 run_p2pool.py --dashd-address 127.0.0.1 --dashd-rpc-port 9998
- Update for Python > 3.0
- p2pool is not starting with dash v18.0.1 HOT 4
- hub.miningpoolhub.com:20465
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2pool-dash.