CN110060163A - Method of commerce, system, medium and the device of podcast chain based on ether mill - Google Patents
Method of commerce, system, medium and the device of podcast chain based on ether mill Download PDFInfo
- Publication number
- CN110060163A CN110060163A CN201910304227.8A CN201910304227A CN110060163A CN 110060163 A CN110060163 A CN 110060163A CN 201910304227 A CN201910304227 A CN 201910304227A CN 110060163 A CN110060163 A CN 110060163A
- Authority
- CN
- China
- Prior art keywords
- transaction
- podcast
- ether mill
- type
- chain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 title claims abstract description 138
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000005540 biological transmission Effects 0.000 claims abstract description 8
- 230000015654 memory Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 230000005055 memory storage Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 14
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000446 fuel Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- KAICRBBQCRKMPO-UHFFFAOYSA-N phosphoric acid;pyridine-3,4-diamine Chemical compound OP(O)(O)=O.NC1=CC=NC=C1N KAICRBBQCRKMPO-UHFFFAOYSA-N 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/405—Establishing or using transaction specific rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Computer Security & Cryptography (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides method of commerce, system, medium and the device of a kind of podcast chain based on ether mill, comprising the following steps: obtains the Transaction Information traded on node;Corresponding type of transaction is set according to the first preset rules based on the Transaction Information;The type of transaction is extension transaction, basis transaction or general transaction;Judge whether the tranaction costs of the transaction are enough;When tranaction costs are enough, the transmission transaction to other nodes, and when the transaction is normal, corresponding service charge is collected according to the second preset rules.Method of commerce, system, medium and the device of a kind of podcast chain based on ether mill of the invention, for collecting reasonable service charge for different type of transaction;And Transaction Information is allowed to may include picture, text or file by the setting of different type of transaction.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of counterparty of podcast chain based on ether mill
Method, system, medium and device.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Application model.For narrow sense, block chain is that data block is combined by one kind in such a way that sequence is connected sequentially in time
A kind of linked data structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Broadly,
Block chain technology be verified using block linked data structure algorithm of knowing together with storing data, using distributed node generating and
More new data, utilizes what is be made of automatized script code at the safety for guaranteeing data transmission and access in the way of cryptography
Intelligent contract programs the completely new distributed basis framework and calculation of one kind with operation data.
Ether mill (Ethereum) is the public block platform chain for having intelligent contract function of an open source, dedicated by its
Encryption currency ether coin (Ether) provides the virtual machine of decentralization to handle point-to-point contract.With the universal of block chain with
It uses, ether mill is gradually received by everybody as basic chain.More and more companies or individual are desirable on ether mill
One's own distributed application program (Decentralized Application, Dapp) solution is built, to mention
For corresponding block chain business solution.
It with the universal of block chain and uses, ether mill is gradually received by everybody as basic chain, more and more
Company or individual, which are desirable on ether mill, builds one's own Dapp, to provide corresponding block chain business solution party
Case.But at present in the design method in ether mill, but designed in the extension information for saving user or third party DAPP insufficient.
Therefore others type of transaction, such as incidentally text, picture, small documents etc. can not be attached in the structure of deal in ether mill.
Just being had a greatly reduced quality using upper in ether mill since in this way, although there is many study courses to write how on ether mill on the net
It carves characters, but is all to record these text informations using the field in the structure of deal of ether mill.This method uses non-
Often trouble, at the same it is also not general enough.
Simultaneously because ether mill is to be written to content information in the way of Hash in transaction or be written to content
In intelligent contract, user checks very inconvenient, is not available RPC (Remote Procedure Call-- remote process
Calling interface, it is that one kind requests to service from remote computer program by network, without understanding underlying network technology
Agreement) directly find the word content or pictorial information that save in transaction.As block chain it is credible for, be unable to fully
Realize that it is declared credible, it is seen that conviction.
The podcast chain (Bokerchain) for continuing to use the exploitation of ether mill (Ethereum) code extensions also will appear similar feelings
Condition.Since podcast chain is as industry basis chain, there is very big demand in terms of true power, and really weighs and be just bound to that there are which user generals
Article, picture, file are earliest to be put on podcast chain (Bokerchain).
The running environment in ether mill, also referred to as ether mill virtual machine.The node for each participating in network can run EVM
A part as block indentification protocol.Full node in each network can carry out identical calculating and store identical value.
Contract execution can be repeated as many times as required in all nodes, and anyone can issue execution contract, this executes contract
Consumption it is very expensive, so for prevent ether mill network occur calculated attack or abuse, ether mill agreement regulation friendship
Easily or each calculation step of contract calling requires to receive service charge (Gas expense).This service charge using Gas as unit in terms of
Number, that is, the fuel being commonly called as.It is used to do Gas use it means that the developer of Dapp needs to prepare certain ether coin.
Meanwhile every transaction all includes GasLimit (fuel limitation quantity).If Gas quantity used in the operation of the transaction is less than
Or equal to set GasLimit, transaction be will be dealt with.But if Gas wastage in bulk or weight is more than GasLimit, all operations are all
It can be reset, but service charge can be still charged for.Block chain can show that this transaction is completed to attempt, but because enough without providing
Gas cause all contract orders to be all reconditioned.Block GasLimit is most Gas total amounts that single block allows, with this
It can be used to determine how many transaction can be packaged in single block.For example, the GasLimit for having 5 transactions is 10 respectively, 20,
If 30,40 and 50. block GasLimit are 100, preceding 4 transaction can be successfully packaged into this block.Miner
Which have the right to determine for transaction to be packaged into block.So another miner can choose last two transaction of packing and enter this
Then first transaction is packaged (10) again by block (50+40).But it if attempts to will use one more than current block
The transaction of GasLimit is packaged, this trade fair is refused by network, and " transaction is more than block to ether mill client meeting feedback error
GasLimit”。
And have different type of transaction on the podcast chain based on ether mill, it can be to being entirely based on if all collecting same expense
The podcast chain in ether mill has adverse effect on;And existing transaction can not be attached to the Transaction Informations such as text, picture, small documents.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of podcast chains based on ether mill
Method of commerce, system, medium and device, for solve how reasonably to charge in the prior art to different type of transaction
The problem of.
In order to achieve the above objects and other related objects, the present invention provides a kind of counterparty of podcast chain based on ether mill
Method, comprising the following steps: obtain the Transaction Information traded on node;It is arranged based on the Transaction Information according to the first preset rules
Corresponding type of transaction;The type of transaction is extension transaction, basis transaction or general transaction;Judge the transaction fee of the transaction
With whether enough;When tranaction costs are enough, the transaction is sent to other nodes, and when the transaction is normal, according to the
Two preset rules collect corresponding service charge.
In one embodiment of the invention, first preset rules are as follows: when the Transaction Information include picture, text or
Judge the type of transaction for extension transaction when file;When the Transaction Information includes setting verifier, the personal contract of setting, takes
Disappear personal contract, setting system contract, cancel system contract, be registered as candidate, user ballot, user cancel ballot, produce
Raw current block node out, user data upload, distribution judge to trade based on the type of transaction when leading to card;When the transaction
Information shows to judge that the type of transaction is general transaction when the transaction is the original transaction in ether mill.
In one embodiment of the invention, second preset rules are as follows: received when the type of transaction is extension transaction
Take fixed fee;Service charge is not collected when trading based on the type of transaction;When the type of transaction is general transaction
When according to the original trading rules in ether mill collect service charge.
In one embodiment of the invention, the Transaction Information of the extension transaction further includes extended field.
In one embodiment of the invention, the extended field includes text, picture or file.
In one embodiment of the invention, the type of transaction in the Transaction Information is obtained according to RPC interface.
In one embodiment of the invention, the RPC interface at least two.
To achieve the above object, the present invention also provides a kind of transaction systems of podcast chain based on ether mill, comprising: obtains
Module, setup module, judgment module and collect module;The acquisition module is for obtaining the Transaction Information traded on node;Institute
State setup module for based on the Transaction Information according to the corresponding type of transaction of the first preset rules setting;The type of transaction
For extension transaction, basis transaction or general transaction;The judgment module is for judging whether the tranaction costs of the transaction are enough;
The module of collecting is used for when tranaction costs are enough, the transmission transaction to other nodes, and when the transaction is normal, root
Corresponding service charge is collected according to the second preset rules.
To achieve the above object, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence, the program realize the method for commerce of any above-mentioned podcast chain based on ether mill when being executed by processor.
To achieve the above object, the present invention also provides a kind of the transaction devices of podcast chain based on ether mill, comprising: processing
Device and memory;The memory is for storing computer program;The processor is connected with the memory, for executing
The computer program for stating memory storage, so that the transaction device of the podcast chain based on ether mill executes any above-mentioned base
In the method for commerce of the podcast chain in ether mill.
As described above, method of commerce, system, medium and the device of a kind of podcast chain based on ether mill of the invention, tool
Have following the utility model has the advantages that for collecting reasonable service charge for different type of transaction;And pass through different type of transaction
Setting allows Transaction Information to may include picture, text or file.
Detailed description of the invention
Fig. 1 is shown as flow chart of the method for commerce of the podcast chain of the invention based on ether mill in an embodiment;
Fig. 2 is shown as structural representation of the transaction system of the podcast chain of the invention based on ether mill in an embodiment
Figure;
Fig. 3 is shown as the structural schematic diagram of signal of communication reception device of the invention in an embodiment.
Component label instructions
21 obtain module
22 setup modules
23 judgment modules
24 collect module
31 processors
32 memories
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment
Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation
Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel
It is likely more complexity.
Method of commerce, system, medium and the device of podcast chain based on ether mill of the invention, for being directed to different friendships
Easy type collects reasonable service charge;And Transaction Information is allowed to may include picture, text by the setting of different type of transaction
Or file.
As shown in Figure 1, in an embodiment, the method for commerce of the podcast chain of the invention based on ether mill, including it is following
Step:
Step S11, the Transaction Information traded on node is obtained.
In one embodiment of the invention, firstly the need of the transaction for obtaining transaction in the transaction of the podcast chain based on ether mill
Information.Specifically, Transaction Information includes type of transaction, the type of transaction in the Transaction Information can be obtained by RPC interface.
Step S12, corresponding type of transaction is arranged according to the first preset rules based on the Transaction Information;The transaction class
Type is extension transaction, basis transaction or general transaction.
In one embodiment of the invention, first preset rules are when the Transaction Information includes picture, text or text
Judge the type of transaction for extension transaction when part;When the Transaction Information includes setting verifier, personal contract, cancellation is arranged
Personal contract, setting system contract cancel system contract, are registered as candidate, user's ballot, user's cancellation ballot, generate
Current judges to trade based on the type of transaction when going out block node, user data upload, distributing logical card;When the transaction is believed
Breath shows to judge that the type of transaction is general transaction when the transaction is the original transaction in ether mill.
In one embodiment of the invention, the Transaction Information of the extension transaction further includes extended field.Specifically, the expansion
Opening up field includes text, picture or file.
Step S13, judge whether the tranaction costs of the transaction are enough.
In one embodiment of the invention, need to prejudge the transaction before the transaction is sent to other nodes
Tranaction costs it is whether enough, to guarantee that subsequent transaction can continue to carry out.Judge that the tranaction costs of the transaction include described
The specific execution cost of transaction and the service charge for executing the transaction needs.
Step S14, when tranaction costs are enough, the transmission transaction to other nodes, and when the transaction is normal, root
Corresponding service charge is collected according to the second preset rules.
In one embodiment of the invention, whether normal trade described in other node verifications, when the transaction is normal, root
According to second preset rules: collecting fixed fee when the type of transaction is extension transaction;When the type of transaction is
Service charge is not collected when the transaction of basis;It is collected when the type of transaction is general transaction according to the original trading rules in ether mill
Service charge.Reasonable service charge is collected for different type of transaction in this way.Specifically, the fixed fee refers to when described
When type of transaction is extension transaction, that is, Transaction Information of the extension transaction further include extended field includes text, picture or file
When collect the service charge of quota, do not change service charge as the extended field includes the size of text, picture or file, but
It is that there is the extended field certain size to limit.It trades for extension, since extension content needs occupied space, to allow
Structure of deal becomes larger, and when each block volume is larger, and can generate on worldwide data transfer certain influences the (number in ether mill
Need to be transmitted to the whole world according to the data for being 1MB, need the general 1.5 seconds time), therefore extension transaction is taken to collect and is determined
The mode of volume service charge.It trades based on the type of transaction specifically: when the Transaction Information of the transaction includes that setting is tested
Card person is arranged personal contract, cancels personal contract, setting system contract, cancel system contract, be registered as candidate, user
Ballot, user cancel ballot, generates and current judges the type of transaction when going out the logical card of block node, user data upload, distribution
Based on trade, do not collect service charge at this time.
In one embodiment of the invention, the type of transaction in the Transaction Information is obtained according to RPC interface.The RPC connects
Mouth at least two.Specifically, the RPC interface is used to obtain the extended field of the Transaction Information of extension transaction, a RPC is connect
The literal field of the extended field of Transaction Information of the mouth for obtaining extension transaction.Another RPC interface is handed over for obtaining extension
The picture or file field of the extended field of easy Transaction Information.
As shown in Fig. 2, in an embodiment, the transaction system of the podcast chain of the invention based on ether mill, including obtain
Module 21, setup module 22, judgment module 23 and collect module 24.
The acquisition module 21 is for obtaining the Transaction Information traded on node.
In one embodiment of the invention, firstly the need of the transaction for obtaining transaction in the transaction of the podcast chain based on ether mill
Information.Specifically, Transaction Information includes type of transaction, the transaction class in the Transaction Information can be obtained by RPC interface
Type.
The setup module 22 is used to that corresponding type of transaction to be arranged according to the first preset rules based on the Transaction Information;
The type of transaction is extension transaction, basis transaction or general transaction.
In one embodiment of the invention, first preset rules are when the Transaction Information includes picture, text or text
Judge the type of transaction for extension transaction when part;When the Transaction Information includes setting verifier, personal contract, cancellation is arranged
Personal contract, setting system contract cancel system contract, are registered as candidate, user's ballot, user's cancellation ballot, generate
Current judges to trade based on the type of transaction when going out block node, user data upload, distributing logical card;When the transaction is believed
Breath shows to judge that the type of transaction is general transaction when the transaction is the original transaction in ether mill.
In one embodiment of the invention, the Transaction Information of the extension transaction further includes extended field.Specifically, the expansion
Opening up field includes text, picture or file.
The judgment module 23 is for judging whether the tranaction costs of the transaction are enough.
In one embodiment of the invention, need to prejudge the transaction before the transaction is sent to other nodes
Tranaction costs it is whether enough, to guarantee that subsequent transaction can continue to carry out.Judge that the tranaction costs of the transaction include described
The specific execution cost of transaction and the service charge for executing the transaction needs.
The module 24 of collecting is used for when tranaction costs are enough, the transmission transaction to other nodes, and in the friendship
When easily normal, corresponding service charge is collected according to the second preset rules.
In one embodiment of the invention, whether normal trade described in other node verifications, when the transaction is normal, root
According to second preset rules: collecting fixed fee when the type of transaction is extension transaction;When the type of transaction is
Service charge is not collected when the transaction of basis;It is collected when the type of transaction is general transaction according to the original trading rules in ether mill
Service charge.Reasonable service charge is collected for different type of transaction in this way.Specifically, the fixed fee refers to when described
When type of transaction is extension transaction, that is, Transaction Information of the extension transaction further include extended field includes text, picture or file
When collect the service charge of quota, do not change service charge as the extended field includes the size of text, picture or file, but
It is that there is the extended field certain size to limit.It trades for extension, since extension content needs occupied space, to allow
Structure of deal becomes larger, and when each block volume is larger, and can generate on worldwide data transfer certain influences the (number in ether mill
Need to be transmitted to the whole world according to the data for being 1MB, need the general 1.5 seconds time), therefore extension transaction is taken to collect and is determined
The mode of volume service charge.It trades based on the type of transaction specifically: when the Transaction Information of the transaction includes that setting is tested
Card person is arranged personal contract, cancels personal contract, setting system contract, cancel system contract, be registered as candidate, user
Ballot, user cancel ballot, generates and current judges the type of transaction when going out the logical card of block node, user data upload, distribution
Based on trade, do not collect service charge at this time.
In one embodiment of the invention, the type of transaction in the Transaction Information is obtained according to RPC interface.The RPC connects
Mouth at least two.Specifically, the RPC interface is used to obtain the extended field of the Transaction Information of extension transaction, a RPC is connect
The literal field of the extended field of Transaction Information of the mouth for obtaining extension transaction.Another RPC interface is handed over for obtaining extension
The picture or file field of the extended field of easy Transaction Information.
It should be noted that it should be understood that the modules of system above division be only a kind of logic function division,
It can completely or partially be integrated on a physical entity in actual implementation, it can also be physically separate.And these modules can be with
All realized by way of processing element calls with software;It can also all realize in the form of hardware;It can also part mould
Block realizes that part of module passes through formal implementation of hardware by way of processing element calls software.For example, x module can be
The processing element individually set up also can integrate and realize in some chip of above-mentioned apparatus, in addition it is also possible to program generation
The form of code is stored in the memory of above-mentioned apparatus, is called by some processing element of above-mentioned apparatus and is executed the above x mould
The function of block.The realization of other modules is similar therewith.Furthermore these modules completely or partially can integrate together, can also be only
It is vertical to realize.Processing element described here can be a kind of integrated circuit, the processing capacity with signal.During realization,
Each step of the above method or the above modules can be by the integrated logic circuits of the hardware in processor elements or soft
The instruction of part form is completed.
For example, the above module can be arranged to implement one or more integrated circuits of above method, such as:
One or more specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or,
One or more microprocessors (Digital Singnal Processor, abbreviation DSP), or, one or more scene can compile
Journey gate array (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through place
When managing the form realization of element scheduler program code, which can be general processor, such as central processing unit
(Central Processing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules
It can integrate together, realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
In one embodiment of the invention, the invention also includes a kind of computer readable storage mediums, are stored thereon with calculating
Machine program, the program realize the method for commerce of any of the above-described podcast chain based on ether mill when being executed by processor.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of computer program is crossed to complete.Computer program above-mentioned can store in a computer readable storage medium
In.When being executed, execution includes the steps that above-mentioned each method embodiment to the program;And storage medium above-mentioned include: ROM,
The various media that can store program code such as RAM, magnetic or disk.
As shown in figure 3, the transaction device of the podcast chain of the invention based on ether mill includes: processing in an embodiment
Device 31 and memory 32;The memory 32 is for storing computer program;The processor 31 is connected with the memory 32,
The computer program stored for executing the memory 32, so that the transaction device of the podcast chain based on ether mill executes
The method of commerce of any podcast chain based on ether mill.
Specifically, the memory 32, which includes: that ROM, RAM, magnetic disk, USB flash disk, storage card or CD etc. are various, can store
The medium of program code.
Preferably, the processor 31 can be general processor, including central processing unit (Central Processing
Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processor, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In conclusion the present invention is based on method of commerce, system, medium and the devices of the podcast chain in ether mill, for being directed to
Different type of transaction collects reasonable service charge;And Transaction Information is allowed to may include figure by the setting of different type of transaction
Piece, text or file.So the present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.
Claims (10)
1. a kind of method of commerce of the podcast chain based on ether mill, which comprises the following steps:
Obtain the Transaction Information traded on node;
Corresponding type of transaction is set according to the first preset rules based on the Transaction Information;The type of transaction is that extension is handed over
Easily, basis transaction or general transaction;
Judge whether the tranaction costs of the transaction are enough;
When tranaction costs are enough, the transmission transaction to other nodes, and when the transaction is normal, according to the second default rule
Then collect corresponding service charge.
2. the method for commerce of the podcast chain according to claim 1 based on ether mill, which is characterized in that
First preset rules are as follows:
Judge the type of transaction for extension transaction when the Transaction Information includes picture, text or file;
When the Transaction Information includes setting verifier, the personal contract of setting, cancels personal contract, setting system contract, cancellation
System contract is registered as candidate, on the block node out that user votes, user cancels ballot, generation is current, user data
Judge to trade based on the type of transaction when passing, distributing logical card;
Judge that the type of transaction is general transaction when the Transaction Information shows that the transaction is the original transaction in ether mill.
3. the method for commerce of the podcast chain according to claim 1 based on ether mill, which is characterized in that described second is default
Rule are as follows:
Fixed fee is collected when the type of transaction is extension transaction;
Service charge is not collected when trading based on the type of transaction;
Service charge is collected according to the original trading rules in ether mill when the type of transaction is general transaction.
4. the method for commerce of the podcast chain according to claim 1 based on ether mill, which is characterized in that the extension transaction
Transaction Information further include extended field.
5. the method for commerce of the podcast chain according to claim 4 based on ether mill, which is characterized in that the extended field
Including text, picture or file.
6. the method for commerce of the podcast chain according to claim 1 based on ether mill, which is characterized in that according to RPC interface
Obtain the type of transaction in the Transaction Information.
7. the method for commerce of the podcast chain according to claim 6 based on ether mill, which is characterized in that the RPC interface
At least two.
8. a kind of transaction system of the podcast chain based on ether mill characterized by comprising obtain module, setup module, judgement
Module and collect module;
The acquisition module is for obtaining the Transaction Information traded on node;
The setup module is used to that corresponding type of transaction to be arranged according to the first preset rules based on the Transaction Information;The friendship
Easy type is extension transaction, basis transaction or general transaction;
The judgment module is for judging whether the tranaction costs of the transaction are enough;
The module of collecting is used for when tranaction costs are enough, the transmission transaction to other nodes, and normal in the transaction
When, corresponding service charge is collected according to the second preset rules.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The method of commerce of the podcast chain described in any one of claims 1 to 7 based on ether mill is realized when row.
10. a kind of the transaction device of the podcast chain based on ether mill characterized by comprising processor and memory;
The memory is for storing computer program;
The processor is connected with the memory, for executing the computer program of the memory storage, so that the base
The transaction of podcast chain based on ether mill described in requiring any one of 1 to 7 in the transaction perform claim of the podcast chain in ether mill
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910304227.8A CN110060163A (en) | 2019-04-16 | 2019-04-16 | Method of commerce, system, medium and the device of podcast chain based on ether mill |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910304227.8A CN110060163A (en) | 2019-04-16 | 2019-04-16 | Method of commerce, system, medium and the device of podcast chain based on ether mill |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110060163A true CN110060163A (en) | 2019-07-26 |
Family
ID=67319053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910304227.8A Pending CN110060163A (en) | 2019-04-16 | 2019-04-16 | Method of commerce, system, medium and the device of podcast chain based on ether mill |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110060163A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111325555A (en) * | 2020-02-17 | 2020-06-23 | 北京艾鸥科技有限公司 | Block chain resource transaction sending method and device, storage medium and electronic equipment |
CN112348681A (en) * | 2021-01-11 | 2021-02-09 | 北京知帆科技有限公司 | Block chain transaction commission determining method and device and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108681891A (en) * | 2018-05-24 | 2018-10-19 | 深圳前海益链网络科技有限公司 | A kind of Multiple Currencies tranaction costs collection methods based on block chain |
-
2019
- 2019-04-16 CN CN201910304227.8A patent/CN110060163A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108681891A (en) * | 2018-05-24 | 2018-10-19 | 深圳前海益链网络科技有限公司 | A kind of Multiple Currencies tranaction costs collection methods based on block chain |
Non-Patent Citations (2)
Title |
---|
播客链联合创始人——超哥: "刺猬文│播客链的架构说明", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/49543387》 * |
晓之木初: "以太坊中gas、gasPrice、gasLimit是什么?手续费不足异常(insufficient funds)的解决", 《HTTPS://BLOG.CSDN.NET/U014454538/ARTICLE/DETAILS/88780872》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111325555A (en) * | 2020-02-17 | 2020-06-23 | 北京艾鸥科技有限公司 | Block chain resource transaction sending method and device, storage medium and electronic equipment |
CN112348681A (en) * | 2021-01-11 | 2021-02-09 | 北京知帆科技有限公司 | Block chain transaction commission determining method and device and electronic equipment |
CN112348681B (en) * | 2021-01-11 | 2021-05-11 | 北京知帆科技有限公司 | Block chain transaction commission determining method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109472596B (en) | Alliance's chain common recognition method and system based on transaction assessment | |
CN109447648A (en) | The method of recorded data zone block, accounting nodes and medium in block chain network | |
CN113222752A (en) | Data processing system, method, computing device and storage medium based on block chain | |
CN107395353A (en) | A kind of block chain common recognition method and device | |
CN108694575A (en) | Verification method of transferring accounts, device and storage medium based on block chain | |
CN108846659A (en) | Transfer account method, device and storage medium based on block chain | |
CN110471951A (en) | Determine the method for the sequence of Transaction Information, accounting nodes and medium in data block | |
CN108830490A (en) | A method of dynamic enterprise credit scoring is managed using publicly-owned block chain | |
TWI727281B (en) | Block chain-based data processing method and device, and electronic equipment | |
CN110070359A (en) | Verification of data system, method, calculating equipment and storage medium based on block chain | |
CN108764911A (en) | Interconnect network accumulated method of commerce and system | |
CN109409885A (en) | Across chain method of commerce, device and storage medium on block chain | |
US11100093B2 (en) | Blockchain-based recording and querying operations | |
CN107993146A (en) | The air control method and system of financial big data | |
CN111899107B (en) | Scientific and technological service transaction method based on block chain intelligent contract | |
CN109218352A (en) | The common recognition confirmation method and device of Transaction Information in a kind of block chain network | |
CN108765159A (en) | A kind of cochain based on block chain and condition processing method, device and interacted system | |
CN108734469A (en) | The method and apparatus for determining consumer's risk label undetermined | |
CN110012100A (en) | A kind of the block chain common recognition method, apparatus and electronic equipment of bandwidth optimization | |
CN111738725A (en) | Cross-border resource transfer authenticity auditing method and device and electronic equipment | |
CN110505311A (en) | A kind of across the chain exchange method of isomorphism block chain and system | |
CN109977638A (en) | Intelligent contract update method and system, storage medium and terminal based on ether mill | |
CN110060163A (en) | Method of commerce, system, medium and the device of podcast chain based on ether mill | |
CN110222323A (en) | A kind of voucher generation method, device, readable storage medium storing program for executing and terminal device | |
CN114463110A (en) | Credit granting system and method based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190726 |