transactions – I sent bitcoins from one wallet to another. Next day, the receiving wallet shows balance 0

If the “crypto app wallet” is the crypto.com app, that appears to be a “custodial account”, not a normal non-custodial wallet. In that case it might be just crypto.com consolidating funds. You should contact their customer support about your account balance.

If the “crypto app wallet” is the crypto.com wallet, that appears to be a non-custodial wallet. This is a more normal kind of wallet. In that case it could be your money was stolen. You should perhaps review security of computer, wallet, backups and private-keys or recovery phrases.

If the “crypto app wallet” is the thecrypto.app app, that is a custodial account not a normal non-custodial wallet. In that case it might be just thecrypto.app consolidating funds. You should contact their customer support about your account balance.


https://help.thecrypto.app/?article=1 says

The Crypto App wallet is a hosted wallet. That means we host the private keys

Remember, “Not your keys, not your Bitcoin”.

https://help.thecrypto.app/?article=12 says

Contacting wallet support
Please contact our wallet partner using this contact form. Wallet functionality in The Crypto App is provided by Crypterium. The Crypto App support team does not have access and insights into your account.

To me this seems a long way away from the original intent of Satoshi Nakamoto when he created Bitcoin as a way of removing any need to rely on trusted third parties.

c lightning – pyln.testing channel’s spendable_msatoshi remains 0 in the direction towards the funder, regardless of balance

The python test script below (using the pyln-testing library) opens a channel between l1 and l2, and then the funder (l1) pays half of the channel’s capacity to l2.
After this payment ‘l2’ wants to make a smaller payment to l1, but this payment fails for reasons I will explain below the script.

Test script

from pyln.testing.fixtures import *  # noqa: F401, F403
from pyln.testing.utils import wait_for, DEVELOPER
import unittest

@unittest.skipIf(not DEVELOPER, "gossip is too slow if we're not in developer mode")
def test_two_way_payment(node_factory):
    """Send a payment to and fro
    l1 ---- l2
    """
    opts = ({},{})
    l1, l2 = node_factory.get_nodes(2, opts=opts)
    
    capacity=10**6

    l1.openchannel(l2, capacity=capacity)
    
    # Now wait for gossip to settle and l1 to learn the topology
    wait_for(lambda: len(l1.rpc.listchannels()('channels')) == 2)

     # Get all channels balanced (by paying money to the other node)
    l1.pay(l2, capacity // 2)
    l1.wait_for_htlcs()

    print("LISTPEERS L2: {}n".format(l2.rpc.listpeers()))

    l2.pay(l1, capacity // 20)
    l2.wait_for_htlcs()

The script above fails with the error below

Error

Fail: pyln.client.lightning.RpcError: RPC call failed: method: waitsendpay, payload: {'payment_hash': '6d1281627828720bd86cb2815f222a8c0106545d7d4f972e5ec5324133163224'}, error: {'code': 204, 'message': 'failed: WIRE_TEMPORARY_CHANNEL_FAILURE (WIRE_TEMPORARY_CHANNEL_FAILURE: Capacity exceeded - HTLC fee: 7964sat)', 'data': {'id': 1, 'payment_hash': '6d1281627828720bd86cb2815f222a8c0106545d7d4f972e5ec5324133163224', 'destination': '0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518', 'msatoshi': 50000, 'amount_msat': 50000msat, 'msatoshi_sent': 50000, 'amount_sent_msat': 50000msat, 'created_at': 1623829593, 'status': 'failed', 'erring_index': 0, 'failcode': 4103, 'failcodename': 'WIRE_TEMPORARY_CHANNEL_FAILURE', 'erring_node': '022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59', 'erring_channel': '1x1x1', 'erring_direction': 0}}

Listpeers

If I lift some information out of the listpeers rpc call for l2 I can understand why the payment wouldn’t work:

'msatoshi_to_us': 500000
(...)
'spendable_msatoshi': 0

What I don’t understand is why ‘spendable_msatoshi’ would be zero. It can’t be because of the channel reserve. I don’t think it can be because of enormously overestimating the on-chain fees (in case of a forced close) because the l2 isn’t the funder.

What am I missing/not understanding here?

transactions – Urgent! I sent my bitcoins from one wallet to another wallet. But the receiving wallet still display 0 in balance

I have sent some bitcoins from bitcoin.com to the crypto app wallet, yesterday. But, the app still shows 0 bitcoin balance. I checked the receiving address on the block explorer and it showed that the transitions were successful. Today, I checked again. It strangely shows that the bitcoins send to an unknown address. So, could anyone please help to understand what’s going on? Can I get my bitcoins back?

enter image description here

As you can see, 18deMYeiAe45x3fqbzhN15vafPNuSRYaCM was the sending address and 35qerZ6FLCshwCLwqv8JzgoLr9YDfCMquh was the receiving message. But there is another transaction which I have no idea about. Why does my bitcoin fund sent to an unknown address?

camera – Why does my eye lose white balance and feel exhausted when I use my viewfinder?

My D80 has a greenish tint effect (shutter count at approx 46000) in it’s viewfinder which goes away if i use it long enough constantly looking through the viewfinder.

The weird thing is my other eye starts to see things in green tint when i use it for viewfinder instead.

I don’t keep my both eyes during shooting (neither when it comes to shooting certain devices) for easier manual focus but this was a interesting effect.

The other thing i find weird is that my left eye feels exhausted if i keep both of my eyes open.

So, is this normal? What are these called.

❓ASK – I have 5$ Paypal balance , what should I do to earn more ? | NewProxyLists

Earnings Disclaimer:  All the posts published herein are merely based on individual views, and they do not expressly or by implications represent those of NewProxyLists or its owner. It is hereby made clear that NewProxyLists does not endorse, support, adopt or vouch any views, programs and/or business opportunities posted herein. NewProxyLists also does not give and/or offer any investment advice to any members and/or it’s readers. All members and readers are advised to independently consult their own consultants, lawyers and/or families before making any investment and/or business decisions. This forum is merely a place for general discussions. It is hereby agreed by all members and/or readers that NewProxyLists is in no way responsible and/or liable for any damages and/or losses suffered by anyone of you.

money – How can I check my balance using an Italian ATM?

My friend is currently staying in Italy, they are mobile banking and internet banking phobic (they are certain that all their money will be stolen if they use any form of e-banking because they are very old and not tech savvy).

One problem that they face is that when using ATMs in Italy, they don’t seem to be able to find out the balance on their account. Do ATMs in Italy allow you to check your balance on a UK account? If so, which banks do so, and what’s the Italian label/button for checking your account?

load balance for kubernetes master on different subnet

I’m trying to build an architecture for new k8s cluster with master HA on different sites (different subnets).

The issue I’m facing is finding an open source Software Load Balance (there is no physical on the site, and its an on prem env) who can support different subnets (GSLB).

The Load balancer is for the Apiserver and all connectivity to the masters.

Those anyone deploy that architecture? witch LB did you use? I cant use HAproxy or seesaw bc they dont support different subnets.

Lightning-Network Channel not being closed and balance in "limbo"

My node Caffeine has a channel in pending status (close txid: 0de535ea74d72a952157640187b5a207fe977870a5c9b92f0aa99b9707c94779) with The Cave since months!
My local balance is stuck in a "limbo" and I have no idea what to do…
How to finalize the closure? How to get the balance out of the limbo?

enter image description here

Channel not being closed and balance in "limbo"

My node Caffeine has a channel in pending status (close txid: 0de535ea74d72a952157640187b5a207fe977870a5c9b92f0aa99b9707c94779) with The Cave since months!
My local balance is stuck in a "limbo" and I have no idea what to do…
How to finalize the closure? How to get the balance out of the limbo?

enter image description here

python – Could this balance counter code be simpler?

All your win1, win2 and win3 functions are essentially the same. When you have multiple functions/pieces of code that are nearly identical, look at what parts of them are the same, and what parts are different. Make the identical parts the body of a function, and the differing parts parameters of the function.

In the case of those three functions, they’re all the same; except for the bonus factor. Simply make that a parameter:

def win(bonus_factor):
    amount_won = bet * bonus_factor
    # I did different wins, the win1,2,3 function contains them
    print("WIN!WIN!WIN! n You won " , amount_won, "credits! ")
    a.append(a(-1) + amount_won)
    print("Actual balance : ", a(-1))

Then change the callsite to use the same function:

elif reel_1 + reel_2 + reel_3 == 8:
    win(6)

elif  reel_1 + reel_2 + reel_3 == 7:
    win(4)

elif  reel_1 + reel_2 + reel_3 == 6:
    win(2)

And better yet, the 6, 4 and 2 should be extracted out into constants at the top of the file so they’re named and easily modifiable.

That reduced the duplication of those three functions, but there’s multiple things that need to be said about a:

  • It’s a terrible name. The name you associate with an object should be descriptive and let readers know its purpose. Which makes more sense to you?:

    a.append(a(-1) + (bet * 4))
    balance_history.append(balance_history(-1) + (bet * 4))
    

    You’ll find that overwhelmingly, the latter will be easier to understand. Not only is a completely non-descript, but it’s also so simple that you can’t search for usages of it using simple “find” tools, since a is such a common letter.

  • It’s not necessary. If you do a search for usages of a, you’ll see that it’s only used for two things: a(-1), and a.append. While there’s something to be said about anticipating future needs, you’re currently accumulating a history of balances that you never use. This not only uses up more memory than is needed, but it also convolutes the logic. If you’re maintaining a history, that suggests that the history is used somewhere. It never is though. You could safely change a to balance = 1000, then just do simple math on it directly. That would make a lot of this code cleaner and more sensical.


Speaking of memory usage, you’re using recursion for basic looping, which is not a good thing. Your spin function is essentially:

def spin():
    # Logic
    reels(), spin()

Every single time your player takes another turn, spin is allocating another stack frame, and taking up more memory. If your player were to take ~1000 turns, your program would crash due to the stack being exhausted. Change that function to a basic while loop:

def spin():
    global balance
    while True:
        # And this is the main function, the spin
        spin1 = input("Balance : " + str(balance) + " Press enter to spin the wheel ")

        if spin1 == "":
            print("****************************THE WHEEL IS SPINNING**************************** n")
            balance -= bet
            print("Balance : ", balance)
            reels()
        else:
            print("You can only spin the wheel with enter")  

A few changes I made:

  • I changes balance to be a simple integer and discussed above (notice how much more sense balance -= bet makes).
  • It’s using a while loop. This does not eat up memory as the program is used. Recursion should be reserved for the very specific cases where it’s the proper choice, like when iterating a recursive structure. Especially in a language like Python, recursion should be avoided unless you’re very familiar with it and know about its strengths/weaknesses.
  • I rearranged the if branches. You originally had it so if if spin1 == "": was true, all it would do is print; then the actual functionality happened at the bottom of the function. I think it makes much more sense as I have it here; where everything is grouped.
  • I did a lot of small touchups (more on that below).

You’re making heavy use of global variables. This is quite common when starting out, but it’s a habit you should work to fix quickly. General rules of thumb to follow unless you have good reason to do otherwise:

  • All the changing data that a function requires to operate (balance, for example) should be explicitly passed to the function as arguments. This means you can test the function by simply passing it data, and you don’t need to alter global state. This isn’t a big deal now, but needing to alter mutable globals to test a function will become a disaster once your function is larger.
  • All data that the function produces should be returned from the function. Again, this means you can test the function all you want without affecting any other code.

As an alternative, you may also find that creating a class to maintain a state is a cleaner choice as well. That’s getting a little more advanced though.


I’m going to show the full final code below, but I needed to make many small fixes to make it clean. Please be aware of formatting. Yes, it is very important. You have many places in your code where care was not taken to make it consistent and readable:

elif reel_1 + reel_2 + reel_3 == 8:
    win3()

elif  reel_1 + reel_2 + reel_3 == 7:  # Too many spaces after the elif
    win2()


"Balance : "+ str(a(-1))+ " Press enter to spin the wheel "  # Inconsistent spacing around +


def spin() :  # There shouldn't be a space before the colon

If you’re going to write Python, you should spend an afternoon to read over PEP8 at least once. The look of your code reflects strongly on that care that was taken while writing it. You want you code to look sharp, and clean. You may have your own stylistic preferences, but be consistent when applying them, and when in doubt, stick to PEP8.


The final code:

import random

balance = 1000
bet = 20


def win(bonus_factor):
    global balance
    amount_won = bet * bonus_factor
    # I did different wins, the win1,2,3 function contains them
    print("WIN!WIN!WIN! n You won ", amount_won, "credits! ")
    balance += amount_won
    print("Actual balance : ", balance)


def reels():
    global balance
    # Here is the random number calculation.As you can see, theres a pretty good chance to win so it
    # would not be a good casino game for the house :)
    reel_1 = random.randint(1, 3)
    reel_2 = random.randint(1, 3)
    reel_3 = random.randint(1, 3)

    if reel_1 + reel_2 + reel_3 == 9:
        print("Jackpot!!!!!!!!!!")
        balance += bet * 100
        print("Actual balance : ", balance)

    elif reel_1 + reel_2 + reel_3 == 8:
        win(6)

    elif reel_1 + reel_2 + reel_3 == 7:
        win(4)

    elif reel_1 + reel_2 + reel_3 == 6:
        win(2)
    else:
        print("No win this time")


def spin():
    global balance
    while True:
        # And this is the main function, the spin
        spin1 = input("Balance : " + str(balance) + " Press enter to spin the wheel ")

        if spin1 == "":
            print("****************************THE WHEEL IS SPINNING**************************** n")
            balance -= bet
            print("Balance : ", balance)
            reels()
        else:
            print("You can only spin the wheel with enter")


spin()