Skip to content

feat: special transactions#5

Merged
QuantumExplorer merged 46 commits into
masterfrom
feat/specialTransactions
Aug 13, 2022
Merged

feat: special transactions#5
QuantumExplorer merged 46 commits into
masterfrom
feat/specialTransactions

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

No description provided.

Comment thread CONTRIBUTING.md
Comment thread README.md Outdated
Comment thread src/util/sighash.rs
Comment thread src/util/address.rs Outdated
Comment thread src/network/constants.rs
/// A Dash devnet
Devnet <-> "devnet",
/// Dash's regtest
Regtest <-> "regtest"

@shumkov shumkov Aug 8, 2022

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What means this syntax, can't find anything similar https://doc.rust-lang.org/reference/items/enumerations.html

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fominok do you know?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, that's an interesting thing indeed. Probably some deprecated syntax? This code was originally written for the very first version of the compiler

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this syntax is not part of the language but has been introduced by wrapping macro user_enum!

@QuantumExplorer
QuantumExplorer marked this pull request as ready for review August 9, 2022 15:59
use hashes::sha256d;
use blockdata::opcodes;
use blockdata::script;
use blockdata::transaction::{OutPoint, Transaction, TxOut, TxIn};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the problem with use blockdata::transaction::{OutPoint, Transaction, TxOut, TxIn};?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They got moved to their own files.

assert_eq!(out_point.vout, 0);
assert_eq!(out_point.txid, tx.txid());
}
} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't forget about the newlines

Comment thread src/util/bip158.rs
use blockdata::block::Block;
use blockdata::script::Script;
use blockdata::transaction::OutPoint;
use blockdata::transaction::outpoint::OutPoint;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you thing about re-exporting the OutPoint, so the lib external interface stays the same? I.e. pub use outpoint::OutPoint

}

#[cfg(test)]
#[cfg(feature="signer")]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because the test requires signing.

@QuantumExplorer
QuantumExplorer merged commit 27e5222 into master Aug 13, 2022
@QuantumExplorer
QuantumExplorer deleted the feat/specialTransactions branch August 13, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants