-
ra33it0[m]
Elon musk is getting annoying
-
hyc
not a -dev topic
-
ra33it0[m]
Sorry was in the wrong group
-
binaryFate
<KSaunderson> mj-xmr: i made the changes to that PR, can you take a look when you get a chance?
-
binaryFate
-
binaryFate
<KSaunderson> Thanks!
-
binaryFate
reposting ^ as it was not visible to everyone on IRC
-
mj-xmr
Replied. Just one small nitpick :)
-
ed23
Hi. Is there a way I can scan a LMDB database that is key : duplicate struct entries to find whether a struct with say three fields with specific values exists?
-
ed23
similar to how you would do with std::find_if on a vector of structs and boost_bind to the field of the struct you're comparing against
-
ed23
For example search a db of
-
ed23
key: hash
-
ed23
duplicate value structs{
-
ed23
int a;
-
ed23
hash b;
-
ed23
char c;
-
ed23
etc./...
-
ed23
}
-
ed23
and search where a = something, b = something
-
moneromooo
Do you mean: you have records, some of which share the same key, and you want to find a record that has a particular key *and* value ?
-
moneromooo
If so, yes. See, for example, the key images table, which has a single key (special case).
-
ed23
Yes but not a particular value in totality moneromooo, a value (that is a struct) that has *some* attributes the same but not all
-
moneromooo
I have one like that in Townforge, a Monero clone.
git.townforge.net, cc_events table.
-
ed23
i'll take a look
-
ed23
is it still fast for looking up like that?
-
moneromooo
Measure it :) But I don't think it really matters much (assuming your comparison function is sane).
-
ed23
moneromooo where should I be looking at for an example of this kind of query? is it get_cc_events?
-
moneromooo
Yes. Both account and flag may be 0 (any value) or > 0 (only records with that value).
-
ra33it0[m]
Hey guys I was wondering if atomic swaps are coming how can we prevent monero being swapped into tainted BTC or can I see it as a one way ticket from BTC to XMR but not back?
-
kayabaNerve_
If people are willing to accept tainted BTC, then it'll be swapped. What's most likely to happen is the mark will be forced to be dropped IMO
-
kayabaNerve_
Because the money isn't publicly blacklisted, making it viable for commerce, and the new holder has no issue. Lot of wasted time/effort to continue tracking.
-
kayabaNerve_
But even if they keep it marked, and it is an issue, you could always sell tainted BTC back to XMR just like you bought it in the first place
-
ra33it0[m]
Interesting
-
ra33it0[m]
I wonder how it plays out
-
ra33it0[m]
With all their fuzz about their certified clean BTC
-
ed23
moneromooo I think I see kind of what you are doing. Is the only way this is possible a custom compare function?
-
moneromooo
I think so. I did this after asking hyc what was the best way to do it.
-
ed23
lol thanks very complex i see
-
ed23
but makes sense I think
-
ed23
Does your compare function account for if you wanted to check a complete record as well?
-
moneromooo
For a complete record, you can use the spent_keys table system.
-
moneromooo
Or you can extend the accunt/flag system to all the fields in your structure.
-
hyc
what are you trying to do here? retrieve values with a partially-specified comparator?
-
ed23
hyc, yes, essentially i have keys with duplicates (that are structs)
-
ed23
and i want to find some or all duplicates for a given key that have *some* fields matching, but not all
-
moneromooo
Oh, my system will only work if those are sorted (ie, it'll find contiguous records).
-
hyc
yeah, as long as the comparator was fully specified when the data was inserted
-
moneromooo
If your records can be disconnected, I think you'll have to get all and filter manually.
-
hyc
so all records are well-ordered
-
hyc
would be best to just use GET_BOTH_RANGE to find the first match and then go on from there
-
hyc
re: #7707 how does p2p currently work to advertise node's incoming address, when node is NAT'd?
-
moneromooo
IIRC there is a command line param for this.
-
moneromooo
But typically you just don't get any incoming connections.
-
hyc
it is working for me if I portforward thru my router
-
hyc
but my node has no idea what its external address is
-
hyc
"is working" -> I get incoming connections
-
moneromooo
Ah. I thought you meant incoming IP is different.
-
moneromooo
In the base case, Alice connects to Bob, Bob connects back to the incoming IP. If it succeeds, it adds Alice's IP to his peer list.
-
hyc
well PR#7707 is to choose an explicit incoming address
-
hyc
just didn't see what the point was
-
moneromooo
Multihomed servers ?
-
hyc
I guess
-
moneromooo
I have no idea how common that is.
-
hyc
but in that case, just set p2p-bind-ip
-
hyc
so this feature only comes into play if you are (a) multihomed and (b) want incoming addr to be different from bind-ip
-
moneromooo
monerod can't select with NIC to send to.
-
hyc
hmmm
-
moneromooo
A few people said they'd work on it in the past though. AFAIK not done yet. Needs someone with a test system and network knowledge.
-
hyc
if you always do a Bind on the socket before doing the connect() it will force it to send from that addr
-
hyc
then the only missing feature, for multi-homed, would be allowing multiple p2p-bind-ips to be specified
-
hyc
in case they want to use a subset of interfaces, more than 1, less than all.
-
hyc
and we could ignore that again by just saying "run multiple monerods on same blockchain DB and forget about it"
-
ed23
this might be a stupid question, but are payment IDs mandatory for integrated address destinations
-
fluffypony
if there's no payment ID then it's just an address
-
fluffypony
:-P
-
ed23
fluffypony integrated addresses have payment IDs contained within them though
-
fluffypony
yes
-
fluffypony
address + payment ID = integrated address
-
asymptotically
does everything explode if you use the integrated address prefix without a payment id?
-
ed23
that's essentially what i'm wondering
-
ed23
lol
-
moneromooo
It'll be dine.
-
moneromooo
The recipient might insult you a bit for not sending the payment id though.
-
ed23
I don't think the code actually allows for it moneromooo
-
ed23
whenever we use cryptonote::address_parse_info info;
-
moneromooo
You're in -dev...
-
ed23
I know i think i found a bug
-
ed23
just trying to confirm some stuff
-
ed23
whenever we use that structure with an integrated address, info.payment_id is always set
-
ed23
on the receive side, we always expect it too
-
ed23
is a boost::value_initialized<crypto::hash8>(); the same as a hash of all zeroes?
-
moneromooo
Very likely.
-
gingeropolous
my node crashed and ended up in a quickstart loop that eventually caused systemd to abandon the daemon.
-
gingeropolous
or it got into a quickstart loop upon startup after a power failure. this isn't being helpful. okey doke.
-
moneromooo
If you mean it crashes on startup, get us a stack trace. Or if an exit on startup, log level 1.
-
moneromooo
A DB corruption should not be possible after power failure, but...
-
gingeropolous
yeah i was trying to dig through my logs