Is it possible to create a brand new consortium after an orderer has started with the genesis block? If yes, how?
The documentation has example of updating a channel regarding to an existing consortium but I can find nothing related to creating a new consortium.
Thanks a lot in advance
I think your use case can be satisfied by creating a new channel among organizations than creating a new consortium. Chaincode can be programmed in such way that other organizations will not be getting access to data in a particular chain.
Related
When trying to use Waterline standalone mode, I could not find the correct method to perform native queries. With Sails.JS the sendNativeQuery method is used which I could not find in the instances of the models. Does anyone know how I can perform these queries?
Thank you!
I have the same problem, i think it sail who set getDatastore() and sendNativeQuery() function on model and datastore.
Surely on this file: https://github.com/balderdashy/sails-hook-orm/blob/master/lib/build-registered-datastore-instance.js
and the function is defined here: https://github.com/balderdashy/sails-hook-orm/blob/master/lib/build-registered-datastore-instance.js
Im going to implement this in my code but if someone have a better idea or have already doing this i appreciate help :)
Sails enables you to access what called datastore.manager
Depending on the adapter, this might represent a connection pool, a single connection, or even just a reference to a pre-configured client library instance.
If you are using MongoDB for example, you can have a raw Mongo collection instance.
see here.
I'm new to DDS and opensplice, so this may be simple, but I don't understand it.
I am reading about reader caches and writer caches in the opensplice documentation. I understand that data goes into the datawriter cache and is then sent to datareader caches. But how do you push the information you have to the datawriter cache in the first place?
Is there a seperate command for that or does data automatically get sent to the cache when you publish or subscribe a device or application to a topic?
I guess in all, my question is, how does data get into opensplice/ the datawriter cache?
I appreciate any help. Like I said, I've been reading through tutorials and reference guides. I see plenty about what happens when the info is in opensplice, but I can't figure out how you put it there. If possible, could you link to an example too please?
Thanks
Actually .. its as simple as doing a write() or read() for your topic, so its a straightforward API call to provide 'samples' to DDS (i.e. publishing data) or to extract 'samples' from DDS (i.e. reading subscribed data).
As Reinier suggested too, it typically helps to look at some of the bundled examples (you could start with the famous 'HelloWorld") on how to create the publisher/subscriber and reader/writer 'entities' that allow you to interact with DDS from your application (in its 'language of choice')
Note: the examples are located here (for a 32-bit linux installation):
/HDE/x86.linux/examples/dcps/
The source for the Helloworld example (for Java) would then be here:
/HDE/x86.linux/examples/dcps/HelloWorld/java/src
What is the proper way of connecting to mulitple servers/acceptors using quickfix?
Create a thread for each session under the fix application
Create a seperate application for each session, create multiple initiators, start each initiator in a seperate thread
And another related issue -
How does MultiThreadedInitiator class fits in...?
Quickfix already allows multiple sessions. They just have to be defined in your configuration file. From then on you can track messages using SessionID.
I think MultiThreadedInitiator ensures each session is created in a different thread.
A client with a subscription "Large" (recurring payment).
I create a payment and offer object for doing that, and it works.
Now I want to update that subscription to "Small" (a different name and amount) but without updating the credit card.
The paymill flow for doing this is very documented very vague and it's uncertain what the process is.
Have you done anything like this with Paymill, I would be happy to hear about what calls you are doing.
I am using the .NET wrapper
To change an offer (plan) of a running subscription there are 3 types you can use.
Here is the documentation: https://developers.paymill.com/en-gb/subscription-v2-workflow/#update-sub-plan
In .NET they are exposed with the three methods, that are documented:
ChangeOfferKeepCaptureDateAndRefundAsync
ChangeOfferKeepCaptureDateNoRefundAsync
ChangeOfferChangeCaptureDateAndRefundAsync
I'd like to write a Minecraft mod which adds a new type of mob. Is that possible? I see that, in Bukkit, EntityType is a predefined enum, which leads me to believe there may not be a way to add a new type of entity. I'm hoping that's wrong.
Yes, you can!
I'd direct you to some tutorials on the Bukkit forums. Specifically:
Creating a Meteor Entity
Modifying the Behavior of a Mob or Entity
Disclaimer: the first is written by me.
You cannot truly add an entirely new mob just via Bukkit. You'd have to use Spout to give it a different skin. However, in the case you simply want a mob, and are content with sharing a skin of another entity, then it can be done.
The idea is injecting the EntityType values via Java's Reflection API. It would look something like this:
public static void load() {
try {
Method a = EntityTypes.class.getDeclaredMethod("a", Class.class, String.class, int.class);
a.setAccessible(true);
a.invoke(a, YourEntityClass.class, "Your identifier, can be anything", id_map);
} catch (Exception e) {
//Insert handling code here
}
}
I think the above is fairly straightforward. We get a handle to the private method, make it public, and invoke its registration method.id_map contains the entity id to map your entity to. 12 is that of a fireball. The mapping can be found in EntityType.class. Note that these ids should not be confused with their packet designations. The two are completely different.
Lastly, you actually need to spawn your entity. MC will continue spawning the default entity, since we haven't removed it from the map. But its just a matter of calling the net.minecraft.server.spawnEntity(your_entity, SpawnReason.CUSTOM).
If you need a skin, I suggest you look into SpoutPlugin. It does require running the Spout client to join to such a server, but the possibilities at that point are literally infinite.
It would only be possible with client-side mods as well, sadly. You could look into Spout, (http://www.spout.org/) which is a client mod which provides an API for server-side plugins to do more on the client, but without doing something client side, this is impossible.
It's not possible to add new entities, but it is possible to edit entity behaviors for example one time, I made it so that you could tame iron golems and they followed you around.
Also you can sort of achieve custom looking human entities by accessing player entities and tweaking network packets
It's expensive as you need to create a player account to achieve this that then gets used to act as a mob. You then spawn a named entity and give it the same behaviour AI as you would with an existing mob. Keep in mind however you will need to write the AI yourself (you could borrow code straight from craftbukkit/bukkit) and you will need to push the movement and events of this mob to players within sight .. As technically speaking all your doing is pushing packets to the client from the serve on what's actually happening but if your outside that push list nothing will happen as other players will see you being knocked around by invisible something :) it's a bit of a mental leap :)
I'm using this concept to create Npc that act as friendly and factional armies. I've also used mobs themselves as friendly entities (if you belong to a dark faction)
I'd like to personally see future server API that can push model instructions to the client for server specific cache as well as the ability to tell a client where to download mob skins ..
It's doable today but I'd have to create a plugin for the client to achieve this which is then back to a game of annoyance especially when mojang push out a new release and all the plugins take forever to rise with its tide
In all honesty this entire ecosystem could be managed more strategically but right now I think it's just really ad hoc product management (speaking as a former product manager of .net I'd love to work on this strategy it would be such a fun gig)