Hello tonych
Im running a witness and it crashes with this
events.js:160
throw er; // Unhandled 'error' event
^Error: write EPIPE
at exports._errnoException (util.js:1022:11)
at WriteWrap.afterWrite [as oncomplete] (net.js:804:14)
And how come it says this "distance above threshold, will witness" in the logs, but I havent told anyone about the witness ID/public-key, how come it is trying to witness?
Does it make any sense to run a byteball-relay as well as a witness, the logs seem to be the same, is the witness also doing relay?
Is this the entire error message? Looks generic and no references to our code.
Also make sure you are running node.js v4 or above.
What witness does, it only posts small transactions just to prove its presence. When another node trusts this witness, it will look for units posted by this witness to make sure it is on the legit version of the DAG and not being sybil'd.
Yes, the witness is also relaying transactions, like any full node for that matter.
I solved it, the above error happens when no /usr/sbin/sendmail is present, a crash in the mail.js
Then I added a dummy sendmail script to just save the "mail" to file instead as I dont want emails, but my script didnt read stdin, and then the above happened.
Ive now just removed the mail.js function to instead use console.log with a prefix .
Now then, witness, does it require funds/bytes available on its address to operate? I got "will witness" messages and then "no more funds" and a crash, so I sent a few kilobytes to the address of the witness and that worked better and I could see it wasting funds in the ebesr explorer. So a witness will earn fees but also has ro have some small funds to send its approvals?
Also, the witness code crashed on something else but am not close to computer now. In any case, the craah ahould cause the main process to also exit, now its hanging while nothing happens.
Also, another issue, Ive sewn transactions posted by my wallet containing a witness list, I assume this witness list will evwntually wnd uo in a witness list unit and be untamperable, but is it possible to make a modifyed wallet to send a witness list which is 12witnessws of my own choosing, my witnesses would see the transactio n right, modify the witness list to be 11 real ones plus my own and tske the transaction fee. The other witnesses wouldnt know anything, id just take all/many fees.