Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: MikeJ_NpC on July 08, 2022, 12:16:46 PM



Title: Txn madness - move and sigscript -
Post by: MikeJ_NpC on July 08, 2022, 12:16:46 PM
Okay well .... if someone has any time, i would appreciate some help with the following..


- if you have a move on a wallet, and it has recorded this so 1btc from A to B .. how are you able to take B and send it to C externally...   Do i just sign it with B? it being internal?

- I have a txn which comes back with a stack error, its not the privkey missing  but the sigscript inst there when i decode it ..  So how can i add this into the createraw process? so it builds in the sigraw result?   yes there is a output with asm and sigscript

Just to add onto this i thought a move to another address would resolve it, .. (no its not in the same dat hehe) and relates to the question above. 


so 4 days of driving myself nuts  if anyone wants to be nice and has some time for telegram, id appreciate the hand holding, and will send you a holiday card.

i really dont like txns.. its either been that or the flag type .. the signrawwithwallet was a nice add ...... anyways .. yes the wallets are unlocked and bal keypoolsize unlocked until paytxfee privkeys true etc are all good.


besides some other misc question .. is it best to use bitcoind as opposed to the client .. i feel so newbie lol or it could be the headache ....  @mikejnpc...





Title: Re: Txn madness - move and sigscript -
Post by: vjudeu on July 08, 2022, 12:28:09 PM
Quote
Do i just sign it with B? it being internal?
You have two transactions: A->B (that is signed by A), and B->C (signed by B). It is that simple.

Quote
I have a txn which comes back with a stack error
If there is a stack error, then the transaction is invalid, and should be treated as invalid, so not relayed, not mined, and no block should be accepted if it contains any such transaction.


Title: Re: Txn madness - move and sigscript -
Post by: jackg on July 08, 2022, 01:35:26 PM
besides some other misc question .. is it best to use bitcoind as opposed to the client .. i feel so newbie lol or it could be the headache .... 

It might depend on what you feel more comfortable with as the gui client command line offers suggestions as you type (or used to) which might be helpful for you to learn new commands.



There's no distinction in bitcoin between sending something to your own wallet address and sending something externally. Every address and private key are generated in a unique manner so they are harder to identify.


Title: Re: Txn madness - move and sigscript -
Post by: NotATether on July 09, 2022, 04:28:04 PM
If you are getting stack errors, that means you have received inputs with a custom scriptPubKey, and you're attempting to create a transaction with a custom scriptSig (an action which is not supported by Core):

- What is the scriptPubKey?
- What are you using to create the transaction? (createrawtransaction will not work here).